Blob Blame History Raw
From b6f9915a0b3c3dfc687a930dd263c87ccc33315f Mon Sep 17 00:00:00 2001
From: Andrzej Hunt <andrzej@ahunt.org>
Date: Thu, 12 Nov 2015 14:41:02 +0100
Subject: [PATCH 312/398] More range based for

Change-Id: I9cdcd8dca413981389cd4db3059a420131e5f839
(cherry picked from commit 6e6ae9803796b120e95f6e89575e03c5fd0ed3c2)
---
 desktop/source/lib/init.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index d724b81f9ac6..a51e44591847 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]);
-- 
2.12.0