Ignore:
Timestamp:
Jul 5, 2016, 9:10:16 PM (3 years ago)
Author:
cameron
Message:

Some changes recommended by cppcheck

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/symbol_generator.cpp

    r4860 r5081  
    4343String * SymbolGenerator::make(const std::string prefix, const bool generated) {
    4444    auto f = mPrefixMap.find(prefix);
    45     unsigned count = 0;
    4645    if (f == mPrefixMap.end()) {
    4746        mPrefixMap.insert(std::make_pair(prefix, 1));
    4847        return get(prefix, generated);
    4948    } else {
    50         count = f->second++;
     49        unsigned count = f->second++;
    5150        return get(prefix + std::to_string(count), generated);
    5251    }
Note: See TracChangeset for help on using the changeset viewer.