diff options
author | Machiavelli <none@none> | 2009-06-18 17:21:25 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-06-18 17:21:25 +0200 |
commit | 3a309abfab3762d1c3bc2f90b961582e83d5971a (patch) | |
tree | b04ae4230e1d2b67f78e4ce74b0ed6038c62be6d /src/shared | |
parent | 85e59ecd578159a049295071f456c52e9d124de6 (diff) |
* In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
* Other minor cleanups, Null pointer checks etc.
--HG--
branch : trunk
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/Log.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp index c90b96b291f..0f1138279ff 100644 --- a/src/shared/Log.cpp +++ b/src/shared/Log.cpp @@ -235,7 +235,7 @@ void Log::InitColors(const std::string& str) std::istringstream ss(str); - for(int i = 0; i < LogLevels; ++i) + for(uint8 i = 0; i < LogLevels; ++i) { ss >> color[i]; @@ -246,7 +246,7 @@ void Log::InitColors(const std::string& str) return; } - for(int i = 0; i < LogLevels; ++i) + for(uint8 i = 0; i < LogLevels; ++i) m_colors[i] = ColorTypes(color[i]); m_colored = true; |