summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-13 11:44:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-13 11:44:48 +0200
commit99a735474db0a7a422fea948e3e0dc460566e8f6 (patch)
treec26a96348acac5ded4120015f8b999b5349b2652 /svx/source
parent9fb2a9c895334c88eae7641b26921a3d1ce9c909 (diff)
loplugin:oncevar: empty strings: svx
Change-Id: I371e3b76cca006125629e7ceeed52873836c8ccc
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/dialog/imapdlg.cxx3
-rw-r--r--svx/source/gallery2/galbrws2.cxx4
2 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx
index e64dd30470d9..4c9325902254 100644
--- a/svx/source/dialog/imapdlg.cxx
+++ b/svx/source/dialog/imapdlg.cxx
@@ -588,7 +588,6 @@ void SvxIMapDlg::SetActiveTool( sal_uInt16 nId )
IMPL_LINK( SvxIMapDlg, InfoHdl, IMapWindow&, rWnd, void )
{
- OUString aStr;
const NotifyInfo& rInfo = rWnd.GetInfo();
if ( rInfo.bNewObj )
@@ -611,7 +610,7 @@ IMPL_LINK( SvxIMapDlg, InfoHdl, IMapWindow&, rWnd, void )
m_pTbxIMapDlg1->EnableItem( mnActiveId, false );
m_pTbxIMapDlg1->EnableItem( mnMacroId, false );
m_pTbxIMapDlg1->EnableItem( mnPropertyId, false );
- m_pStbStatus->SetItemText( 1, aStr );
+ m_pStbStatus->SetItemText( 1, OUString() );
m_pFtURL->Disable();
m_pURLBox->Disable();
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index a2afa9b0383a..cff892c4f875 100644
--- a/svx/source/gallery2/galbrws2.cxx
+++ b/svx/source/gallery2/galbrws2.cxx
@@ -1031,7 +1031,7 @@ void GalleryBrowser2::DispatchAdd(
return;
sal_Int8 nType = 0;
- OUString aFileURL, aFilterName;
+ OUString aFilterName;
css::uno::Reference< css::lang::XComponent > xDrawing;
css::uno::Reference< css::graphic::XGraphic > xGraphic;
@@ -1067,7 +1067,7 @@ void GalleryBrowser2::DispatchAdd(
aSeq[0].Name = SVXGALLERYITEM_TYPE;
aSeq[0].Value <<= nType;
aSeq[1].Name = SVXGALLERYITEM_URL;
- aSeq[1].Value <<= aFileURL;
+ aSeq[1].Value <<= OUString();
aSeq[2].Name = SVXGALLERYITEM_FILTER;
aSeq[2].Value <<= aFilterName;
aSeq[3].Name = SVXGALLERYITEM_DRAWING;