aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Util.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-17 16:20:24 -0700
committermaximius <none@none>2009-10-17 16:20:24 -0700
commit3f338cc1c328c7280957583b50598292cd8fb64b (patch)
treeca209c2cd024e3902b7844b3224bceff7c5bb570 /src/shared/Util.cpp
parente585187b248f48b3c6e9247b49fa07c6565d65e5 (diff)
*Massive cleanup redux.
--HG-- branch : trunk
Diffstat (limited to 'src/shared/Util.cpp')
-rw-r--r--src/shared/Util.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shared/Util.cpp b/src/shared/Util.cpp
index ede7a27ea7b..9846b48286c 100644
--- a/src/shared/Util.cpp
+++ b/src/shared/Util.cpp
@@ -136,7 +136,7 @@ void stripLineInvisibleChars(std::string &str)
size_t wpos = 0;
bool space = false;
- for(size_t pos = 0; pos < str.size(); ++pos)
+ for (size_t pos = 0; pos < str.size(); ++pos)
{
if(invChars.find(str[pos])!=std::string::npos)
{
@@ -192,7 +192,7 @@ uint32 TimeStringToSecs(const std::string& timestring)
uint32 buffer = 0;
uint32 multiplier = 0;
- for(std::string::const_iterator itr = timestring.begin(); itr != timestring.end(); itr++ )
+ for (std::string::const_iterator itr = timestring.begin(); itr != timestring.end(); itr++ )
{
if(isdigit(*itr))
{
@@ -418,7 +418,7 @@ std::wstring GetMainPartOfName(std::wstring wname, uint32 declension)
{ &ie_End[1], &i_End[1], NULL, NULL, NULL, NULL, NULL, NULL }
};
- for(wchar_t const * const* itr = &dropEnds[declension][0]; *itr; ++itr)
+ for (wchar_t const * const* itr = &dropEnds[declension][0]; *itr; ++itr)
{
size_t len = size_t((*itr)[-1]); // get length from string size field
@@ -506,9 +506,9 @@ void vutf8printf(FILE *out, const char *str, va_list* ap)
void hexEncodeByteArray(uint8* bytes, uint32 arrayLen, std::string& result)
{
std::ostringstream ss;
- for(uint32 i=0; i<arrayLen; ++i)
+ for (uint32 i=0; i<arrayLen; ++i)
{
- for(uint8 j=0; j<2; ++j)
+ for (uint8 j=0; j<2; ++j)
{
unsigned char nibble = 0x0F & (bytes[i]>>((1-j)*4));
char encodedNibble;