diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-16 15:51:26 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-17 08:45:15 +0200 |
commit | 48cb92cb1671bfdef3fcf43978455f19b26ca7bd (patch) | |
tree | c50dec2c019daff055e253d1b8230d8d00b8b369 /svx/source/svdraw/svdmodel.cxx | |
parent | 430b93f7f3c9f5aeb89db634447cb554acd125aa (diff) |
convert XPropertyListType to scoped enum
Change-Id: I071c0d17c7c5982af47bccd92580bbac62bdf7b3
Diffstat (limited to 'svx/source/svdraw/svdmodel.cxx')
-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?*/ ); } } |