From 48cb92cb1671bfdef3fcf43978455f19b26ca7bd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 16 Aug 2016 15:51:26 +0200 Subject: convert XPropertyListType to scoped enum Change-Id: I071c0d17c7c5982af47bccd92580bbac62bdf7b3 --- svx/source/svdraw/svdmodel.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'svx/source/svdraw/svdmodel.cxx') 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 #include #include +#include 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() ) { - if( !bExtColorTable || i != XCOLOR_LIST ) + if( !bExtColorTable || i != XPropertyListType::Color ) maProperties[i] = XPropertyList::CreatePropertyList ( - (XPropertyListType) i, aTablePath, ""/*TODO?*/ ); + i, aTablePath, ""/*TODO?*/ ); } } -- cgit