Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 22, 2009, 10:05:38 PM (14 years ago)
Author:
rgrieder
Message:

Replaced (*it). with it→ where I could find it. Should increased code readability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/util/StringUtils.cc

    r6394 r6400  
    5454    {
    5555        size_t pos;
    56         while ((pos = (*str).find(' ')) < (*str).length())
    57             (*str).erase(pos, 1);
    58         while ((pos = (*str).find('\t')) < (*str).length())
    59             (*str).erase(pos, 1);
    60         while ((pos = (*str).find('\n')) < (*str).length())
    61             (*str).erase(pos, 1);
     56        while ((pos = str->find(' ')) < str->length())
     57            str->erase(pos, 1);
     58        while ((pos = str->find('\t')) < str->length())
     59            str->erase(pos, 1);
     60        while ((pos = str->find('\n')) < str->length())
     61            str->erase(pos, 1);
    6262    }
    6363
Note: See TracChangeset for help on using the changeset viewer.