summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-07 15:59:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 06:11:51 +0000
commit8955c3fde60b0621527e4b91576e49778494f926 (patch)
treec74b6e1991bb7684f0fd78c943a1968f2113e602 /basctl
parent525a45f22f591d8046ca95af3073ed27fd283ef0 (diff)
loplugin:oncevar
Change-Id: I44fb6858eeff14fcbd9fdfbbb0aabd1433b6a27d Reviewed-on: https://gerrit.libreoffice.org/30668 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/localizationmgr.cxx7
-rw-r--r--basctl/source/dlged/dlged.cxx3
2 files changed, 3 insertions, 7 deletions
diff --git a/basctl/source/basicide/localizationmgr.cxx b/basctl/source/basicide/localizationmgr.cxx
index e9dbf622b31f..6ee7bdd752d8 100644
--- a/basctl/source/basicide/localizationmgr.cxx
+++ b/basctl/source/basicide/localizationmgr.cxx
@@ -68,7 +68,6 @@ bool LocalizationMgr::isLibraryLocalized ()
void LocalizationMgr::handleTranslationbar ()
{
- static const char aLayoutManagerName[] = "LayoutManager";
static const char aToolBarResName[] = "private:resource/toolbar/translationbar";
Reference< beans::XPropertySet > xFrameProps
@@ -76,7 +75,7 @@ void LocalizationMgr::handleTranslationbar ()
if ( xFrameProps.is() )
{
Reference< css::frame::XLayoutManager > xLayoutManager;
- uno::Any a = xFrameProps->getPropertyValue( aLayoutManagerName );
+ uno::Any a = xFrameProps->getPropertyValue( "LayoutManager" );
a >>= xLayoutManager;
if ( xLayoutManager.is() )
{
@@ -884,8 +883,6 @@ void LocalizationMgr::deleteControlResourceIDsForDeletedEditorObject( DlgEditor*
void LocalizationMgr::setStringResourceAtDialog( const ScriptDocument& rDocument, const OUString& aLibName,
const OUString& aDlgName, const Reference< container::XNameContainer >& xDialogModel )
{
- static const char aResourceResolverPropName[] = "ResourceResolver";
-
// Get library
Reference< container::XNameContainer > xDialogLib( rDocument.getLibrary( E_DIALOGS, aLibName, true ) );
Reference< XStringResourceManager > xStringResourceManager =
@@ -907,7 +904,7 @@ void LocalizationMgr::setStringResourceAtDialog( const ScriptDocument& rDocument
}
Reference< beans::XPropertySet > xDlgPSet( xDialogModel, UNO_QUERY );
- xDlgPSet->setPropertyValue( aResourceResolverPropName, Any(xStringResourceManager) );
+ xDlgPSet->setPropertyValue( "ResourceResolver", Any(xStringResourceManager) );
}
}
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx
index 09fb33607a25..9d8b0adccd84 100644
--- a/basctl/source/dlged/dlged.cxx
+++ b/basctl/source/dlged/dlged.cxx
@@ -59,7 +59,6 @@ using namespace ::com::sun::star::io;
static const char aResourceResolverPropName[] = "ResourceResolver";
static const char aDecorationPropName[] = "Decoration";
-static const char aTitlePropName[] = "Title";
// DlgEdHint
@@ -124,7 +123,7 @@ void DlgEditor::ShowDialog()
if( !bDecoration )
{
xNewDlgModPropSet->setPropertyValue( aDecorationPropName, makeAny( true ) );
- xNewDlgModPropSet->setPropertyValue( aTitlePropName, makeAny( OUString() ) );
+ xNewDlgModPropSet->setPropertyValue( "Title", makeAny( OUString() ) );
}
}
catch(const UnknownPropertyException& )