Changeset 10273 for code/trunk/src/libraries/core
- Timestamp:
- Feb 15, 2015, 9:46:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/Loader.cc
r10272 r10273 338 338 339 339 // 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 ... ?> .. " 340 342 { 341 343 std::map<size_t, bool>::iterator it = luaTags.begin(); 342 std::map<size_t, bool>::iterator it2 = it;343 344 bool bBetweenQuotes = false; 344 345 size_t pos = 0; … … 349 350 if (bBetweenQuotes) 350 351 { 352 std::map<size_t, bool>::iterator it2 = it; 351 353 it2++; 352 354 if (it->second && !(it2->second) && it2->first < pos) 353 it = ++it2;355 std::advance(it, 2); 354 356 else 355 357 luaTags.erase(it++);
Note: See TracChangeset
for help on using the changeset viewer.