Permalink
Browse files

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

…ar_t*'
  • Loading branch information...
1 parent 1831e53 commit aebc8b8334f1396862b7249d2ab993d83c1c11f8 unknown committed Feb 14, 2011
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
@@ -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;
@@ -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),

0 comments on commit aebc8b8

Please sign in to comment.