From: Mikko Rasa Date: Fri, 6 Jul 2012 12:23:03 +0000 (+0300) Subject: Style fix: add whitespace X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=dce2985e07e6184f000ef176451150710e21ee35;p=libs%2Fcore.git Style fix: add whitespace --- diff --git a/source/fs/path.cpp b/source/fs/path.cpp index 90c4d70..035e220 100644 --- a/source/fs/path.cpp +++ b/source/fs/path.cpp @@ -210,7 +210,7 @@ Path::Iterator::Iterator(const Path &p): start(0) { if(path.path.empty()) - start=end = string::npos; + start = end = string::npos; else if(path.path[0]==DIRSEP) end = 1; #ifdef WIN32 diff --git a/source/fs/path.h b/source/fs/path.h index 6aa16f6..c3c599a 100644 --- a/source/fs/path.h +++ b/source/fs/path.h @@ -30,7 +30,7 @@ public: private: const Path &path; - std::string::size_type start,end; + std::string::size_type start, end; Iterator(const Path &); public: diff --git a/source/io/buffered.cpp b/source/io/buffered.cpp index be4c8d4..53f8391 100644 --- a/source/io/buffered.cpp +++ b/source/io/buffered.cpp @@ -48,7 +48,7 @@ void Buffered::flush() } } else if(cur_op==M_READ) - begin=end = buf; + begin = end = buf; } unsigned Buffered::do_write(const char *data, unsigned size) @@ -101,7 +101,7 @@ unsigned Buffered::do_read(char *data, unsigned size) // Give out whatever is in the buffer already memcpy(data, begin, end-begin); unsigned ret = end-begin; - begin=end = buf; + begin = end = buf; data += ret; size -= ret; diff --git a/source/strings/fmt.h b/source/strings/fmt.h index 84690d1..baf2a76 100644 --- a/source/strings/fmt.h +++ b/source/strings/fmt.h @@ -91,19 +91,19 @@ private: public: Fmt &width(unsigned w) { wd = w; return *this; } Fmt &precision(unsigned p) { prec = p; return *this; } - Fmt &showpos(bool s=true) { spos = s; return *this; } + Fmt &showpos(bool s = true) { spos = s; return *this; } Fmt &fill(wchar_t f) { fillc = f; return *this; } Fmt &fixed() { fmode = FIXED; return *this; } Fmt &scientific() { fmode = SCI; return *this; } - Fmt &showpoint(bool s=true) { spoint = s; return *this; } - Fmt &showbase(bool s=true) { sbase = s; return *this; } + Fmt &showpoint(bool s = true) { spoint = s; return *this; } + Fmt &showbase(bool s = true) { sbase = s; return *this; } Fmt &left() { align = LEFT; return *this; } Fmt &right() { align = RIGHT; return *this; } Fmt &dec() { base = DEC; return *this; } Fmt &hex() { base = HEX; return *this; } Fmt &oct() { base = OCT; return *this; } Fmt &bin() { base = BIN; return *this; } - Fmt &uppercase(bool u=true) { ucase = u; return *this; } + Fmt &uppercase(bool u = true) { ucase = u; return *this; } Fmt &numeric() { type = NUM; return *this; } Fmt &character() { type = CHAR; return *this; } Fmt &string() { type = STR; return *this; } diff --git a/source/strings/regex.cpp b/source/strings/regex.cpp index 60b8ed1..67157c9 100644 --- a/source/strings/regex.cpp +++ b/source/strings/regex.cpp @@ -310,7 +310,7 @@ Regex::Code Regex::parse_brackets(const string &str, string::const_iterator &ite unsigned char mask[32] = {0}; unsigned type = 0; bool range = false; - unsigned char first=0, last = 0; + unsigned char first = 0, last = 0; for(string::const_iterator i=iter; i!=end; ++i) { unsigned char c = *i;