summaryrefslogtreecommitdiffstats
path: root/editeng/source/outliner/paralist.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/source/outliner/paralist.hxx')
-rw-r--r--editeng/source/outliner/paralist.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/outliner/paralist.hxx b/editeng/source/outliner/paralist.hxx
index 7b78dfcd82b4..0b60ac78eb9c 100644
--- a/editeng/source/outliner/paralist.hxx
+++ b/editeng/source/outliner/paralist.hxx
@@ -27,6 +27,7 @@
#include <vector>
#include <editeng/outliner.hxx>
+#include <o3tl/safeint.hxx>
#include <tools/link.hxx>
class Paragraph;
@@ -50,7 +51,7 @@ public:
Paragraph* GetParagraph( sal_Int32 nPos ) const
{
- return 0 <= nPos && static_cast<size_t>(nPos) < maEntries.size() ? maEntries[nPos].get() : nullptr;
+ return 0 <= nPos && o3tl::make_unsigned(nPos) < maEntries.size() ? maEntries[nPos].get() : nullptr;
}
sal_Int32 GetAbsPos( Paragraph const * pParent ) const;