summaryrefslogtreecommitdiffstats
path: root/sc/source/core/data/table3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/table3.cxx')
-rw-r--r--sc/source/core/data/table3.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 0b5e07497a27..eb2d1d9c4857 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -3133,9 +3133,7 @@ SCSIZE ScTable::Query(const ScQueryParam& rParamOrg, bool bKeepSub)
aStr = aBuf.makeStringAndClear();
}
- std::pair<StrSetType::iterator, bool> r = aStrSet.insert(aStr);
- bool bIsUnique = r.second; // unique if inserted.
- bResult = bIsUnique;
+ bResult = aStrSet.insert(aStr).second; // unique if inserted.
}
}
else