X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be6bf94bf0500c4d83a0180125a8376cbba676b3..a43a4f9d4d4a7f107e81bc7de0c1eea729593ee2:/include/wx/textfile.h diff --git a/include/wx/textfile.h b/include/wx/textfile.h index 2433f02c58..3ac74cfc2a 100644 --- a/include/wx/textfile.h +++ b/include/wx/textfile.h @@ -108,19 +108,8 @@ public: bool Write(Type typeNew = Type_None); // get the file termination string - inline static const char *GetEOL(Type type = typeDefault) - { - switch ( type ) { - case Type_None: return ""; - case Type_Unix: return "\n"; - case Type_Dos: return "\r\n"; - case Type_Mac: return "\r"; - - default: - wxFAIL_MSG("bad file type in wxTextFile::GetEOL."); - return (const char *) NULL; - } - } + // Note: implementation moved to textfile to prevent warning due to switch. + static const char *GetEOL(Type type = typeDefault); // dtor ~wxTextFile();