summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editeng/source/rtf/svxrtf.cxx4
-rw-r--r--include/svl/whichranges.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx
index ac1e91e2cdde..7bbf46a6026c 100644
--- a/editeng/source/rtf/svxrtf.cxx
+++ b/editeng/source/rtf/svxrtf.cxx
@@ -922,7 +922,7 @@ void SvxRTFParser::BuildWhichTable()
{
sal_uInt16 nTrueWid = pAttrPool->GetTrueWhich(nWid, false);
aPardMap[nWid] = nTrueWid;
- aWhichMap.MergeRange(nTrueWid, nTrueWid);
+ aWhichMap = aWhichMap.MergeRange(nTrueWid, nTrueWid);
}
// Here are the IDs for all character attributes, which can be detected by
@@ -944,7 +944,7 @@ void SvxRTFParser::BuildWhichTable()
{
sal_uInt16 nTrueWid = pAttrPool->GetTrueWhich(nWid, false);
aPlainMap[nWid] = nTrueWid;
- aWhichMap.MergeRange(nTrueWid, nTrueWid);
+ aWhichMap = aWhichMap.MergeRange(nTrueWid, nTrueWid);
}
}
diff --git a/include/svl/whichranges.hxx b/include/svl/whichranges.hxx
index 76403968d2d7..744a0f2edaf5 100644
--- a/include/svl/whichranges.hxx
+++ b/include/svl/whichranges.hxx
@@ -122,7 +122,7 @@ struct SVL_DLLPUBLIC WhichRangesContainer
void reset();
// Adds a range to which ranges, keeping the ranges in valid state (sorted, non-overlapping)
- WhichRangesContainer MergeRange(sal_uInt16 nFrom, sal_uInt16 nTo) const;
+ SAL_WARN_UNUSED_RESULT WhichRangesContainer MergeRange(sal_uInt16 nFrom, sal_uInt16 nTo) const;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */