summaryrefslogtreecommitdiff
path: root/sd/qa/unit/sdmodeltestbase.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/qa/unit/sdmodeltestbase.hxx')
-rw-r--r--sd/qa/unit/sdmodeltestbase.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/qa/unit/sdmodeltestbase.hxx b/sd/qa/unit/sdmodeltestbase.hxx
index 1bb6828a53ea..a490dcee60ee 100644
--- a/sd/qa/unit/sdmodeltestbase.hxx
+++ b/sd/qa/unit/sdmodeltestbase.hxx
@@ -26,7 +26,7 @@
#include <tools/color.hxx>
#include <comphelper/fileformat.h>
#include <comphelper/processfactory.hxx>
-
+#include <o3tl/safeint.hxx>
#include <rtl/strbuf.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/docfilt.hxx>
@@ -194,7 +194,7 @@ protected:
FileFormat* getFormat(sal_Int32 nExportType)
{
FileFormat* pFormat = &aFileFormats[0];
- if (static_cast<sal_uInt32>(nExportType) < SAL_N_ELEMENTS(aFileFormats))
+ if (o3tl::make_unsigned(nExportType) < SAL_N_ELEMENTS(aFileFormats))
pFormat = &aFileFormats[nExportType];
return pFormat;
}