diff options
Diffstat (limited to 'sfx2/source/dialog/dockwin.cxx')
-rw-r--r-- | sfx2/source/dialog/dockwin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx index a2ad4336ad7f..8b787fc69bd2 100644 --- a/sfx2/source/dialog/dockwin.cxx +++ b/sfx2/source/dialog/dockwin.cxx @@ -26,6 +26,7 @@ #include <vcl/svapp.hxx> #include <vcl/timer.hxx> #include <vcl/idle.hxx> +#include <o3tl/safeint.hxx> #include <osl/diagnose.h> #include <rtl/instance.hxx> #include <toolkit/helper/vclunohelper.hxx> @@ -296,7 +297,7 @@ namespace static bool lcl_checkDockingWindowID( sal_uInt16 nID ) { - return !(nID < SID_DOCKWIN_START || nID >= sal_uInt16(SID_DOCKWIN_START+NUM_OF_DOCKINGWINDOWS)); + return !(nID < SID_DOCKWIN_START || nID >= o3tl::make_unsigned(SID_DOCKWIN_START+NUM_OF_DOCKINGWINDOWS)); } static SfxWorkWindow* lcl_getWorkWindowFromXFrame( const uno::Reference< frame::XFrame >& rFrame ) |