summaryrefslogtreecommitdiff
path: root/unotools
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
commitce4f509e08854e98fffc82f5139a38431a34f04f (patch)
tree79d1e6ddffa4e1d8348d2b7c68564e80f89f52e3 /unotools
parent5e0b1b08a3828729b75188bf6ad79d3f03f79794 (diff)
this can be passed by reference, like the name suggests
Diffstat (limited to 'unotools')
-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 854570e8cf..19ca23ec03 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 ae7b4d3a3b..a1f144b452 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)
{