Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 15, 2015, 9:46:31 PM (10 years ago)
Author:
landauf
Message:

bugfix & simplification & comment by bknecht

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/Loader.cc

    r10272 r10273  
    338338
    339339        // erase all tags from the map that are between two quotes
     340        // that means occurrences like "..<?lua.." and "..?>.." would be deleted
     341        // however occurrences of lua tags within quotas are retained: ".. <?lua ... ?> .. "
    340342        {
    341343            std::map<size_t, bool>::iterator it = luaTags.begin();
    342             std::map<size_t, bool>::iterator it2 = it;
    343344            bool bBetweenQuotes = false;
    344345            size_t pos = 0;
     
    349350                    if (bBetweenQuotes)
    350351                    {
     352                        std::map<size_t, bool>::iterator it2 = it;
    351353                        it2++;
    352354                        if (it->second && !(it2->second) && it2->first < pos)
    353                             it = ++it2;
     355                            std::advance(it, 2);
    354356                        else
    355357                            luaTags.erase(it++);
Note: See TracChangeset for help on using the changeset viewer.