X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstate.cpp;h=80c4292efdef93f77d039b90224082f2fc687415;hb=033732b500a35f3737bad515349d884cb3f123f0;hp=4e0a1debafadbbd711f03de028252cf20f2ff3c7;hpb=50bf1ef2e2c3c38de20f6996a6c5ed0066111177;p=libs%2Fgltk.git diff --git a/source/state.cpp b/source/state.cpp index 4e0a1de..80c4292 100644 --- a/source/state.cpp +++ b/source/state.cpp @@ -17,22 +17,22 @@ istream &operator>>(istream &is, State &state) string str; is>>str; - unsigned start=0; - state=NORMAL; + unsigned start = 0; + state = NORMAL; while(1) { - unsigned underscore=str.find('_', start); + string::size_type underscore = str.find('_', start); if(!str.compare(start, underscore-start, "NORMAL")) - state|=NORMAL; + state |= NORMAL; else if(!str.compare(start, underscore-start, "HOVER")) - state|=HOVER; + state |= HOVER; else if(!str.compare(start, underscore-start, "ACTIVE")) - state|=ACTIVE; + state |= ACTIVE; else if(!str.compare(start, underscore-start, "FOCUS")) - state|=FOCUS; + state |= FOCUS; else if(!str.compare(start, underscore-start, "DISABLED")) - state|=DISABLED; + state |= DISABLED; else { is.setstate(ios_base::failbit); @@ -41,7 +41,7 @@ istream &operator>>(istream &is, State &state) if(underscore==std::string::npos) break; - start=underscore+1; + start = underscore+1; } return is;