summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-04-19 16:29:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-05-20 15:23:38 +0100
commit38dd732295241b06a86a9a06ff316ea2ed0550b1 (patch)
tree7f76986c3db137af169259f71cf2ffe506eb5167
parent619463bd62ada4a845fe9ecca5bc1fbf48025348 (diff)
this can be passed by reference, like the name suggests
-rw-r--r--unotools/inc/unotools/configitem.hxx2
-rw-r--r--unotools/source/config/configitem.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/unotools/inc/unotools/configitem.hxx b/unotools/inc/unotools/configitem.hxx
index ff85b878e5b5..dd1ab6964b93 100644
--- a/unotools/inc/unotools/configitem.hxx
+++ b/unotools/inc/unotools/configitem.hxx
@@ -115,7 +115,7 @@ namespace utl
GetTree();
protected:
- ConfigItem(const rtl::OUString rSubTree,
+ ConfigItem(const rtl::OUString &rSubTree,
sal_Int16 nMode = CONFIG_MODE_DELAYED_UPDATE);
ConfigItem(utl::ConfigManager& rManager, const rtl::OUString rSubTree);
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index 4a3809c222fb..0832b203ab2c 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -219,7 +219,7 @@ void ConfigChangeListener_Impl::disposing( const EventObject& /*rSource*/ ) thro
pParent->RemoveChangesListener();
}
-ConfigItem::ConfigItem(const OUString rSubTree, sal_Int16 nSetMode ) :
+ConfigItem::ConfigItem(const OUString &rSubTree, sal_Int16 nSetMode ) :
sSubTree(rSubTree),
pImpl(new ConfigItem_Impl)
{