[Scummvm-cvs-logs] scummvm master -> 3ddea4952d2aec5ef61d0ae8762266edb9ceb02e

lordhoto lordhoto at gmail.com
Sun Nov 13 01:45:51 CET 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
3ddea4952d COMMON: Some minor formatting fixes in translation code.


Commit: 3ddea4952d2aec5ef61d0ae8762266edb9ceb02e
    https://github.com/scummvm/scummvm/commit/3ddea4952d2aec5ef61d0ae8762266edb9ceb02e
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2011-11-12T16:43:41-08:00

Commit Message:
COMMON: Some minor formatting fixes in translation code.

Done by running astyle over the files.

Changed paths:
    common/translation.cpp
    common/translation.h



diff --git a/common/translation.cpp b/common/translation.cpp
index e0386a2..081bde9 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 9e52457..71cf2b0 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






More information about the Scummvm-git-logs mailing list