135360
From b6f9915a0b3c3dfc687a930dd263c87ccc33315f Mon Sep 17 00:00:00 2001
135360
From: Andrzej Hunt <andrzej@ahunt.org>
135360
Date: Thu, 12 Nov 2015 14:41:02 +0100
135360
Subject: [PATCH 312/398] More range based for
135360
135360
Change-Id: I9cdcd8dca413981389cd4db3059a420131e5f839
135360
(cherry picked from commit 6e6ae9803796b120e95f6e89575e03c5fd0ed3c2)
135360
---
135360
 desktop/source/lib/init.cxx | 2 +-
135360
 1 file changed, 1 insertion(+), 1 deletion(-)
135360
135360
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
135360
index d724b81f9ac6..a51e44591847 100644
135360
--- a/desktop/source/lib/init.cxx
135360
+++ b/desktop/source/lib/init.cxx
135360
@@ -1294,7 +1294,7 @@ static char* getStyles(LibreOfficeKitDocument* pThis, const char* pCommand)
135360
         }
135360
 
135360
         uno::Sequence<OUString> aStyles = xStyleFamily->getElementNames();
135360
-        for (sal_Int32 nInd = 0; nInd < aStyles.getLength(); ++nInd)
135360
+        for ( OUString aStyle: aStyles )
135360
         {
135360
             boost::property_tree::ptree aChild;
135360
             aChild.put("", aStyles[nInd]);
135360
-- 
135360
2.12.0
135360