diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-05-24 10:58:31 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-05-24 10:59:11 +0200 |
commit | 226b81d0f300a62da9351d1fc011b88f93f0b2b0 (patch) | |
tree | 1e83992d30922a9c56cba7daca8524d6cb2da32a /svtools | |
parent | 70eb7af641ed1c2fdc754d522472f804f80d0a9d (diff) |
returning reference to temporary [-Werror]
Change-Id: Ib37f1fc9658cb50227463cf2aa1421ba47b2ec9f
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/templwin.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/templwin.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/contnr/templwin.cxx b/svtools/source/contnr/templwin.cxx index b1b85c2677ab..98cf1940a13e 100644 --- a/svtools/source/contnr/templwin.cxx +++ b/svtools/source/contnr/templwin.cxx @@ -594,7 +594,7 @@ SvtDocInfoTable_Impl::SvtDocInfoTable_Impl() : } // ----------------------------------------------------------------------- -const String& SvtDocInfoTable_Impl::GetString( long nId ) const +rtl::OUString SvtDocInfoTable_Impl::GetString( long nId ) const { sal_uInt32 nPos( FindIndex( nId ) ); diff --git a/svtools/source/contnr/templwin.hxx b/svtools/source/contnr/templwin.hxx index 207efeb09139..d945cf7a30f0 100644 --- a/svtools/source/contnr/templwin.hxx +++ b/svtools/source/contnr/templwin.hxx @@ -173,7 +173,7 @@ private: public: SvtDocInfoTable_Impl(); - const String& GetString( long nId ) const; + rtl::OUString GetString( long nId ) const; }; class SvtFrameWindow_Impl : public Window |