add PISet::const_iterator, now can iterate ranged-for PISet by T, not by PIPair<T, bool>

This commit is contained in:
2024-04-05 17:13:18 +03:00
parent 9283c88b4e
commit ee4d78d2e1
3 changed files with 95 additions and 11 deletions

View File

@@ -285,10 +285,10 @@ int main(int argc, char * argv[]) {
ts << "<context>\n";
ts << " <name>" << context << "</name>\n";
for (const auto & s: strings) {
TSMessage m = old.value(s.first);
m.filename = locations.value(s.first.hash());
writeTSMessage(s.first, m);
old.remove(s.first);
TSMessage m = old.value(s);
m.filename = locations.value(s.hash());
writeTSMessage(s, m);
old.remove(s);
}
if (!cli.hasArgument("no-obsolete")) {
for (const auto & i: old) {