diff options
author | Johannes Schickel | 2011-11-13 01:43:41 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-11-13 01:43:41 +0100 |
commit | 3ddea4952d2aec5ef61d0ae8762266edb9ceb02e (patch) | |
tree | 31455a49193e8052e25dbf5b122274368b18b8c6 /common | |
parent | 2acfca89984cabdac986a624cce2eba91727afb8 (diff) | |
download | scummvm-rg350-3ddea4952d2aec5ef61d0ae8762266edb9ceb02e.tar.gz scummvm-rg350-3ddea4952d2aec5ef61d0ae8762266edb9ceb02e.tar.bz2 scummvm-rg350-3ddea4952d2aec5ef61d0ae8762266edb9ceb02e.zip |
COMMON: Some minor formatting fixes in translation code.
Done by running astyle over the files.
Diffstat (limited to 'common')
-rw-r--r-- | common/translation.cpp | 12 | ||||
-rw-r--r-- | common/translation.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/common/translation.cpp b/common/translation.cpp index e0386a29ef..081bde987d 100644 --- a/common/translation.cpp +++ b/common/translation.cpp @@ -130,14 +130,14 @@ const char *TranslationManager::getTranslation(const char *message, const char * // Get the range of messages with the same ID (but different context) leftIndex = rightIndex = midIndex; while ( - leftIndex > 0 && - _currentTranslationMessages[leftIndex - 1].msgid == m->msgid + leftIndex > 0 && + _currentTranslationMessages[leftIndex - 1].msgid == m->msgid ) { --leftIndex; } while ( - rightIndex < (int)_currentTranslationMessages.size() - 1 && - _currentTranslationMessages[rightIndex + 1].msgid == m->msgid + rightIndex < (int)_currentTranslationMessages.size() - 1 && + _currentTranslationMessages[rightIndex + 1].msgid == m->msgid ) { ++rightIndex; } @@ -222,7 +222,7 @@ String TranslationManager::getLangById(int id) const { return ""; } -bool TranslationManager::openTranslationsFile(File& inFile) { +bool TranslationManager::openTranslationsFile(File &inFile) { // First look in the Themepath if we can find the file. if (ConfMan.hasKey("themepath") && openTranslationsFile(FSNode(ConfMan.get("themepath")), inFile)) return true; @@ -242,7 +242,7 @@ bool TranslationManager::openTranslationsFile(File& inFile) { return false; } -bool TranslationManager::openTranslationsFile(const FSNode &node, File& inFile, int depth) { +bool TranslationManager::openTranslationsFile(const FSNode &node, File &inFile, int depth) { if (!node.exists() || !node.isReadable() || !node.isDirectory()) return false; diff --git a/common/translation.h b/common/translation.h index 9e5245702e..71cf2b0981 100644 --- a/common/translation.h +++ b/common/translation.h @@ -173,13 +173,13 @@ private: * then if needed using the Themepath. If found it opens the given File * to read the translations.dat file. */ - bool openTranslationsFile(File&); + bool openTranslationsFile(File &); /** * Find the translations.dat file in the given directory node. * If found it opens the given File to read the translations.dat file. */ - bool openTranslationsFile(const FSNode &node, File&, int depth = -1); + bool openTranslationsFile(const FSNode &node, File &, int depth = -1); /** * Load the list of languages from the translations.dat file |