diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/services/desktop.cxx | 2 | ||||
-rw-r--r-- | framework/source/uiconfiguration/ImageList.cxx | 2 | ||||
-rw-r--r-- | framework/source/uiconfiguration/ImageList.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx index 8f9f3f0bac85..c9b5ed8d5b2b 100644 --- a/framework/source/services/desktop.cxx +++ b/framework/source/services/desktop.cxx @@ -1762,7 +1762,7 @@ rtl::Reference<framework::Desktop> createDesktop( } -rtl::Reference<framework::Desktop> framework::getDesktop( +const rtl::Reference<framework::Desktop> & framework::getDesktop( css::uno::Reference<css::uno::XComponentContext> const & context) { static auto const instance = createDesktop(context); diff --git a/framework/source/uiconfiguration/ImageList.cxx b/framework/source/uiconfiguration/ImageList.cxx index e047e6a340c7..0e64d219c166 100644 --- a/framework/source/uiconfiguration/ImageList.cxx +++ b/framework/source/uiconfiguration/ImageList.cxx @@ -158,7 +158,7 @@ sal_uInt16 ImageList::GetImageId( sal_uInt16 nPos ) const return maImages[ nPos ]->mnId; } -OUString ImageList::GetImageName( sal_uInt16 nPos ) const +const OUString & ImageList::GetImageName( sal_uInt16 nPos ) const { return maImages[ nPos ]->maName; } diff --git a/framework/source/uiconfiguration/ImageList.hxx b/framework/source/uiconfiguration/ImageList.hxx index 668b958a07c4..0951b8369d2a 100644 --- a/framework/source/uiconfiguration/ImageList.hxx +++ b/framework/source/uiconfiguration/ImageList.hxx @@ -59,7 +59,7 @@ public: sal_uInt16 GetImageId( sal_uInt16 nPos ) const; - OUString GetImageName( sal_uInt16 nPos ) const; + const OUString & GetImageName( sal_uInt16 nPos ) const; void GetImageNames( ::std::vector< OUString >& rNames ) const; private: |