Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the warning: deprecated conversion from string constant to 'wch…

…ar_t*'
  • Loading branch information...
commit aebc8b8334f1396862b7249d2ab993d83c1c11f8 1 parent 1831e53
unknown authored
Showing with 4 additions and 2 deletions.
  1. +1 −1  src/agg/agg_truetype_text.cpp
  2. +3 −1 src/agg/agg_truetype_text.h
View
2  src/agg/agg_truetype_text.cpp
@@ -115,7 +115,7 @@ namespace agg
m_text_attributes.remove_all();
- m_font->name = L"\x0041\x0072\x0069\x0061\x006C"; //"Arial"
+ m_font->name = defaultFontName;
m_font->name_gc = true;
m_font->bold = 0;
m_font->italic = 0;
View
4 src/agg/agg_truetype_text.h
@@ -26,6 +26,8 @@
#include "host-ext-text.h"
+#define defaultFontName (wchar_t*)L"\x0041\x0072\x0069\x0061\x006C" //"Arial"
+
namespace agg
{
@@ -77,7 +79,7 @@ namespace agg
}
font() :
- name(L"\x0041\x0072\x0069\x0061\x006C"), //"Arial"
+ name(defaultFontName),
name_gc(TRUE),
bold(0),
italic(0),
Please sign in to comment.
Something went wrong with that request. Please try again.