diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtflde.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx index fb6cd419b923..242b641369c8 100644 --- a/xmloff/source/text/txtflde.cxx +++ b/xmloff/source/text/txtflde.cxx @@ -62,6 +62,7 @@ #include <com/sun/star/rdf/XMetadatable.hpp> #include <comphelper/sequence.hxx> #include <o3tl/any.hxx> +#include <o3tl/safeint.hxx> #include <rtl/ustrbuf.hxx> #include <tools/debug.hxx> #include <rtl/math.hxx> @@ -2853,7 +2854,7 @@ void XMLTextFieldExport::ExplodeFieldMasterName( size_t nSeparator = sMasterName.find('.', nLength); // '.' found? - if (static_cast<sal_Int32>(nSeparator) == nLength || nSeparator == std::u16string_view::npos) { + if (nSeparator == o3tl::make_unsigned(nLength) || nSeparator == std::u16string_view::npos) { SAL_WARN("xmloff.text", "no field var name!"); } else |