diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-19 16:02:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-20 07:50:06 +0200 |
commit | 6ee9f2c188290ba8a8bc6d435f645b31a05783ea (patch) | |
tree | 60a58e7c8995d64f3b22cf228480284172b6a17c /basctl/source/basicide/basides1.cxx | |
parent | 9c2b43e86fbb7612a58f6e55bc429f674977d6dd (diff) |
loplugin:oncevar accessibility..basic
Change-Id: I8fb41b658ef0f6ad1774ea897eace3dc9bb12de6
Reviewed-on: https://gerrit.libreoffice.org/38969
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl/source/basicide/basides1.cxx')
-rw-r--r-- | basctl/source/basicide/basides1.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index 61be4c544eed..a1c9304139ec 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -591,7 +591,6 @@ void Shell::ExecuteGlobal( SfxRequest& rReq ) { OUString aName( pNameItem->GetValue() ); OUString aModType( "Module" ); - OUString aDlgType( "Dialog" ); OUString aType( aModType ); const SfxStringItem* pTypeItem = rReq.GetArg<SfxStringItem>(SID_BASICIDE_ARG_TYPE); if ( pTypeItem ) @@ -600,7 +599,7 @@ void Shell::ExecuteGlobal( SfxRequest& rReq ) BaseWindow* pWin = nullptr; if ( aType == aModType ) pWin = FindBasWin( *pDocument, aLibName, aName ); - else if ( aType == aDlgType ) + else if ( aType == "Dialog" ) pWin = FindDlgWin( *pDocument, aLibName, aName ); if ( pWin ) @@ -873,8 +872,7 @@ void Shell::GetState(SfxItemSet &rSet) break; case SID_BASICIDE_STAT_DATE: { - OUString aDate( "Datum?!" ); - SfxStringItem aItem( SID_BASICIDE_STAT_DATE, aDate ); + SfxStringItem aItem( SID_BASICIDE_STAT_DATE, "Datum?!" ); rSet.Put( aItem ); } break; |