summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/builder.cxx4
-rw-r--r--vcl/source/window/floatwin.cxx2
-rw-r--r--vcl/source/window/status.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 5e41df185bd1..fb613b3e6ba6 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -94,7 +94,7 @@ bool toBool(std::u16string_view rValue)
namespace
{
- OUString mapStockToImageResource(std::u16string_view sType)
+ const OUString & mapStockToImageResource(std::u16string_view sType)
{
if (sType == u"view-refresh")
return SV_RESID_BITMAP_REFRESH;
@@ -118,7 +118,7 @@ namespace
return IMG_CALENDAR;
else if (sType == u"accessories-character-map")
return IMG_CHARACTER_MAP;
- return OUString();
+ return EMPTY_OUSTRING;
}
}
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index bf68500d6a70..196f2126cf5b 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -50,7 +50,7 @@ FloatingWindow::ImplData::ImplData()
mpBox = nullptr;
}
-AbsoluteScreenPixelRectangle FloatingWindow::ImplGetItemEdgeClipRect()
+const AbsoluteScreenPixelRectangle & FloatingWindow::ImplGetItemEdgeClipRect()
{
return mpImplData->maItemEdgeClipRect;
}
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 5df8df387bdf..6fbf44d36c38 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -1222,14 +1222,14 @@ void StatusBar::SetItemCommand( sal_uInt16 nItemId, const OUString& rCommand )
}
}
-OUString StatusBar::GetItemCommand( sal_uInt16 nItemId )
+const OUString & StatusBar::GetItemCommand( sal_uInt16 nItemId )
{
sal_uInt16 nPos = GetItemPos( nItemId );
if ( nPos != STATUSBAR_ITEM_NOTFOUND )
return mvItemList[ nPos ]->maCommand;
- return OUString();
+ return EMPTY_OUSTRING;
}
void StatusBar::SetItemData( sal_uInt16 nItemId, void* pNewData )