cleaned warnings (warning level 4) in Language Class.h with

This commit is contained in:
zilmar 2012-10-05 06:42:51 +10:00
parent 523b1eb3ff
commit 8b151abd7b
1 changed files with 12 additions and 12 deletions

View File

@ -1,5 +1,3 @@
#ifdef __cplusplus
#include "..\support.h"
#pragma warning(disable:4786)
@ -18,6 +16,18 @@ typedef struct {
typedef std::list<LanguageFile> 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