summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej@ahunt.org>2015-11-12 14:41:02 +0100
committerAndrzej Hunt <andrzej@ahunt.org>2015-11-12 15:09:31 +0100
commit6e6ae9803796b120e95f6e89575e03c5fd0ed3c2 (patch)
treeb8f38a4622b6ffaec48eb78c899ac871d619e23c
parentd5545979fb27e317cce4d374a5a913790d8a2adf (diff)
More range based for
Change-Id: I9cdcd8dca413981389cd4db3059a420131e5f839
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index b205cf0d19b0..b4992cc4961e 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1294,7 +1294,7 @@ static char* getStyles(LibreOfficeKitDocument* pThis, const char* pCommand)
}
uno::Sequence<OUString> aStyles = xStyleFamily->getElementNames();
- for (sal_Int32 nInd = 0; nInd < aStyles.getLength(); ++nInd)
+ for ( OUString aStyle: aStyles )
{
boost::property_tree::ptree aChild;
aChild.put("", aStyles[nInd]);