diff options
Diffstat (limited to 'svx/source/accessibility/ChildrenManagerImpl.cxx')
-rw-r--r-- | svx/source/accessibility/ChildrenManagerImpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/accessibility/ChildrenManagerImpl.cxx b/svx/source/accessibility/ChildrenManagerImpl.cxx index 656db47ffc43..b24f70688b6f 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.cxx +++ b/svx/source/accessibility/ChildrenManagerImpl.cxx @@ -37,7 +37,7 @@ #include <com/sun/star/view/XSelectionSupplier.hpp> #include <com/sun/star/container/XChild.hpp> #include <comphelper/types.hxx> - +#include <o3tl/safeint.hxx> #include <rtl/ustring.hxx> #include <tools/debug.hxx> #include <svx/SvxShapeTypes.hxx> @@ -132,7 +132,7 @@ uno::Reference<XAccessible> ChildrenManagerImpl::GetChild (long nIndex) { // Check whether the given index is valid. - if (nIndex < 0 || static_cast<unsigned long>(nIndex) >= maVisibleChildren.size()) + if (nIndex < 0 || o3tl::make_unsigned(nIndex) >= maVisibleChildren.size()) throw lang::IndexOutOfBoundsException ( "no accessible child with index " + OUString::number(nIndex), mxParent); |