← Back to team overview

kicad-developers team mailing list archive

[PATCH] Use Unicode macro for constant text

 

This constant should be given as wchar_t const * in UNICODE builds on
Windows, so use the _T() macro.
---
 common/dialog_about/aboutinfo.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/dialog_about/aboutinfo.h b/common/dialog_about/aboutinfo.h
index df38e7c..8e19c59 100644
--- a/common/dialog_about/aboutinfo.h
+++ b/common/dialog_about/aboutinfo.h
@@ -94,8 +94,8 @@ public:
 
 #if wxUSE_UNICODE
         const wxString utf8_copyrightSign = wxString::FromUTF8( "\xc2\xa9" );
-        copyrightText.Replace( "(c)", utf8_copyrightSign );
-        copyrightText.Replace( "(C)", utf8_copyrightSign );
+        copyrightText.Replace( _T( "(c)" ), utf8_copyrightSign );
+        copyrightText.Replace( _T( "(C)" ), utf8_copyrightSign );
 #endif // wxUSE_UNICODE
 
         return copyrightText;
-- 
2.1.4



Follow ups