diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-04-19 16:29:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-05-20 15:23:38 +0100 |
commit | 38dd732295241b06a86a9a06ff316ea2ed0550b1 (patch) | |
tree | 7f76986c3db137af169259f71cf2ffe506eb5167 /unotools | |
parent | 619463bd62ada4a845fe9ecca5bc1fbf48025348 (diff) |
this can be passed by reference, like the name suggests
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/configitem.hxx | 2 | ||||
-rw-r--r-- | unotools/source/config/configitem.cxx | 2 |
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) { |