diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-13 11:44:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-13 11:44:54 +0200 |
commit | f863d377b84c2e3c44369b73372e2dfa86b42723 (patch) | |
tree | 2e19110a6771606d8f98fd412ce5876e3ab96350 /svtools | |
parent | 99a735474db0a7a422fea948e3e0dc460566e8f6 (diff) |
loplugin:oncevar: empty strings: svtools
Change-Id: I069b49dd628b9c72a25a2b9b7ce46a63fe67b0c5
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/headbar.cxx | 3 | ||||
-rw-r--r-- | svtools/source/control/tabbar.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/control/headbar.cxx b/svtools/source/control/headbar.cxx index 6b77152ae4d3..75cd3f9a960e 100644 --- a/svtools/source/control/headbar.cxx +++ b/svtools/source/control/headbar.cxx @@ -1318,10 +1318,9 @@ OUString HeaderBar::GetHelpText( sal_uInt16 nItemId ) const OString HeaderBar::GetHelpId( sal_uInt16 nItemId ) const { sal_uInt16 nPos = GetItemPos( nItemId ); - OString aRet; if ( nPos != HEADERBAR_ITEM_NOTFOUND ) return (*mpItemList)[ nPos ]->maHelpId; - return aRet; + return OString(); } Size HeaderBar::CalcWindowSizePixel() const diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 76f3edaa8cb1..88d6074d194b 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -2243,10 +2243,9 @@ OUString TabBar::GetHelpText(sal_uInt16 nPageId) const OString TabBar::GetHelpId(sal_uInt16 nPageId) const { sal_uInt16 nPos = GetPagePos(nPageId); - OString aRet; if (nPos != PAGE_NOT_FOUND) return mpImpl->mpItemList[nPos]->maHelpId; - return aRet; + return OString(); } bool TabBar::StartDrag(const CommandEvent& rCEvt, vcl::Region& rRegion) |