diff options
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r-- | svx/source/svdraw/svdmodel.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index 27952e494806..81ee1612e75b 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -94,6 +94,7 @@ #include <LibreOfficeKit/LibreOfficeKitEnums.h> #include <comphelper/lok.hxx> #include <sfx2/viewsh.hxx> +#include <o3tl/enumrange.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -650,11 +651,11 @@ bool SdrModel::IsUndoEnabled() const void SdrModel::ImpCreateTables() { - for( int i = 0; i < XPROPERTY_LIST_COUNT; i++ ) + for( auto i : o3tl::enumrange<XPropertyListType>() ) { - if( !bExtColorTable || i != XCOLOR_LIST ) + if( !bExtColorTable || i != XPropertyListType::Color ) maProperties[i] = XPropertyList::CreatePropertyList ( - (XPropertyListType) i, aTablePath, ""/*TODO?*/ ); + i, aTablePath, ""/*TODO?*/ ); } } |