]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textbuf.cpp
Use the new wx_truncate_cast for any narrowing conversions
[wxWidgets.git] / src / common / textbuf.cpp
index a09bbd5cce426d773fc5c5246f6c5b090c144c37..97178aeb6e51c5eee5432403729367eb55e19155 100644 (file)
 // headers
 // ============================================================================
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "textbuf.h"
-#endif
-
 #include  "wx/wxprec.h"
 
 #ifdef __BORLANDC__
@@ -63,7 +59,7 @@ const wxChar *wxTextBuffer::GetEOL(wxTextFileType type)
             wxFAIL_MSG(wxT("bad buffer type in wxTextBuffer::GetEOL."));
             // fall through nevertheless - we must return something...
 
-        case wxTextFileType_None: return wxT("");
+        case wxTextFileType_None: return wxEmptyString;
         case wxTextFileType_Unix: return wxT("\n");
         case wxTextFileType_Dos:  return wxT("\r\n");
         case wxTextFileType_Mac:  return wxT("\r");