summaryrefslogtreecommitdiff
path: root/framework/source/uifactory/addonstoolbarfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uifactory/addonstoolbarfactory.cxx')
-rw-r--r--framework/source/uifactory/addonstoolbarfactory.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/source/uifactory/addonstoolbarfactory.cxx b/framework/source/uifactory/addonstoolbarfactory.cxx
index 5e0dbc01861a..7607d20653d1 100644
--- a/framework/source/uifactory/addonstoolbarfactory.cxx
+++ b/framework/source/uifactory/addonstoolbarfactory.cxx
@@ -28,6 +28,7 @@
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
+#include <o3tl/safeint.hxx>
#include <vcl/svapp.hxx>
using namespace com::sun::star::uno;
@@ -112,14 +113,14 @@ bool AddonsToolBarFactory::hasButtonsInContext(
// Check before we create a toolbar that we have at least one button in
// the current frame context.
- for ( sal_uInt32 i = 0; i < static_cast<sal_uInt32>(rPropSeqSeq.getLength()); i++ )
+ for ( sal_uInt32 i = 0; i < o3tl::make_unsigned(rPropSeqSeq.getLength()); i++ )
{
bool bIsButton( true );
bool bIsCorrectContext( false );
sal_uInt32 nPropChecked( 0 );
const Sequence< PropertyValue >& rPropSeq = rPropSeqSeq[i];
- for ( sal_uInt32 j = 0; j < static_cast<sal_uInt32>(rPropSeq.getLength()); j++ )
+ for ( sal_uInt32 j = 0; j < o3tl::make_unsigned(rPropSeq.getLength()); j++ )
{
if ( rPropSeq[j].Name == "Context" )
{