summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/lib/init.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index bc25f3e15cde..e33544abec90 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1281,10 +1281,10 @@ static char* getStyles(LibreOfficeKitDocument* pThis, const char* pCommand)
if (sStyleFam == "ParagraphStyles"
&& doc_getDocumentType(pThis) == LOK_DOCTYPE_TEXT)
{
- for( OUString aStyle: aWriterStyles )
+ for (const OUString& rStyle: aWriterStyles)
{
uno::Reference< beans::XPropertySet > xStyle;
- xStyleFamily->getByName( aStyle ) >>= xStyle;
+ xStyleFamily->getByName(rStyle) >>= xStyle;
OUString sName;
xStyle->getPropertyValue("DisplayName") >>= sName;
if( !sName.isEmpty() )
@@ -1299,14 +1299,14 @@ static char* getStyles(LibreOfficeKitDocument* pThis, const char* pCommand)
}
uno::Sequence<OUString> aStyles = xStyleFamily->getElementNames();
- for ( OUString aStyle: aStyles )
+ for (const OUString& rStyle: aStyles )
{
// Filter out the default styles - they are already at the top
// of the list
- if (aDefaultStyleNames.find(aStyle) == aDefaultStyleNames.end())
+ if (aDefaultStyleNames.find(rStyle) == aDefaultStyleNames.end())
{
boost::property_tree::ptree aChild;
- aChild.put("", aStyle);
+ aChild.put("", rStyle);
aChildren.push_back(std::make_pair("", aChild));
}
}