From 8b151abd7b315908c63127f757d63a796a80fbe4 Mon Sep 17 00:00:00 2001 From: zilmar Date: Fri, 5 Oct 2012 06:42:51 +1000 Subject: [PATCH] cleaned warnings (warning level 4) in Language Class.h with --- .../Project64/Multilanguage/Language Class.h | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Source/Project64/Multilanguage/Language Class.h b/Source/Project64/Multilanguage/Language Class.h index d1f118e94..1282e5e10 100644 --- a/Source/Project64/Multilanguage/Language Class.h +++ b/Source/Project64/Multilanguage/Language Class.h @@ -1,5 +1,3 @@ -#ifdef __cplusplus - #include "..\support.h" #pragma warning(disable:4786) @@ -18,6 +16,18 @@ typedef struct { typedef std::list LanguageList; class CLanguage { +public: + CLanguage ( ); + const stdstr & GetString ( LanguageStringID StringID ); + LanguageList & GetLangList ( void ); + void SetLanguage ( char * LanguageName ); + void LoadCurrentStrings ( bool ShowSelectDialog ); + bool IsCurrentLang ( LanguageFile & File ); + +private: + CLanguage(const CLanguage&); // Disable copy constructor + CLanguage& operator=(const CLanguage&); // Disable assignment + stdstr m_SelectedLanguage; const stdstr m_emptyString; @@ -27,14 +37,6 @@ class CLanguage { stdstr GetLangString ( const char * FileName, LanguageStringID ID ); LANG_STR GetNextLangString ( void * OpenFile ); void LoadDefaultStrings ( void ); - -public: - CLanguage ( ); - const stdstr & GetString ( LanguageStringID StringID ); - LanguageList & GetLangList ( void ); - void SetLanguage ( char * LanguageName ); - void LoadCurrentStrings ( bool ShowSelectDialog ); - bool IsCurrentLang ( LanguageFile & File ); }; extern CLanguage * _Lang; @@ -43,5 +45,3 @@ inline LPCSTR GS (LanguageStringID StringID) { return _Lang->GetString(StringID).c_str(); } - -#endif \ No newline at end of file