Skip to content

Commit

Permalink
Fixed the warning: deprecated conversion from string constant to 'wch…
Browse files Browse the repository at this point in the history
…ar_t*'
  • Loading branch information
unknown authored and unknown committed Feb 14, 2011
1 parent 1831e53 commit aebc8b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/agg/agg_truetype_text.cpp
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion src/agg/agg_truetype_text.h
Expand Up @@ -26,6 +26,8 @@

#include "host-ext-text.h"

#define defaultFontName (wchar_t*)L"\x0041\x0072\x0069\x0061\x006C" //"Arial"

namespace agg
{

Expand Down Expand Up @@ -77,7 +79,7 @@ namespace agg
}

font() :
name(L"\x0041\x0072\x0069\x0061\x006C"), //"Arial"
name(defaultFontName),
name_gc(TRUE),
bold(0),
italic(0),
Expand Down

0 comments on commit aebc8b8

Please sign in to comment.