diff options
author | Thierry Crozat | 2010-08-20 21:04:39 +0000 |
---|---|---|
committer | Thierry Crozat | 2010-08-20 21:04:39 +0000 |
commit | 9015a145319b5ce9357a5a47e89854f7d0b82ba4 (patch) | |
tree | 4b93a7c79f451317e4f5508e5d313f862b994a41 | |
parent | 29adf97a141324f9a98cc0e8d128a2a711ea46e3 (diff) | |
download | scummvm-rg350-9015a145319b5ce9357a5a47e89854f7d0b82ba4.tar.gz scummvm-rg350-9015a145319b5ce9357a5a47e89854f7d0b82ba4.tar.bz2 scummvm-rg350-9015a145319b5ce9357a5a47e89854f7d0b82ba4.zip |
i18n: Fix previous commit when translation support is disabled
Previous commit of translation.cpp introduced a defined but not
implemented operator when the translation support was disabled.
This was probably fine since it was not used, but not very clean.
svn-id: r52241
-rw-r--r-- | common/translation.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/common/translation.cpp b/common/translation.cpp index efe75e5361..ec4394c3bc 100644 --- a/common/translation.cpp +++ b/common/translation.cpp @@ -43,15 +43,14 @@ DECLARE_SINGLETON(Common::TranslationManager) namespace Common { +bool operator<(const TLanguage& l1, const TLanguage& l2) { + return strcmp(l1.name, l2.name) < 0; +} #ifdef USE_TRANSLATION // Translation enabled -bool operator<(const TLanguage& l1, const TLanguage& l2) { - return strcmp(l1.name, l2.name) < 0; -} - TranslationManager::TranslationManager() : _currentLang(-1) { loadTranslationsInfoDat(); |