summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-04 08:29:36 +0200
committerNoel Grandin <noel@peralex.com>2015-11-04 14:10:44 +0200
commit59b072e22b0610abc7ffdbc75873ef5cbba58de7 (patch)
tree663c2d01a983508f9b22ec87fae29b16ab5a1683 /cui
parentSTR_MASTERPAGESSELECTOR appears to be unused (diff)
downloadcore-59b072e22b0610abc7ffdbc75873ef5cbba58de7.tar.gz
core-59b072e22b0610abc7ffdbc75873ef5cbba58de7.zip
yyyyy
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx13
-rw-r--r--cui/source/customize/selector.cxx6
-rw-r--r--cui/source/dialogs/hlmarkwn.cxx2
-rw-r--r--cui/source/dialogs/insdlg.cxx2
-rw-r--r--cui/source/options/optgdlg.cxx3
5 files changed, 10 insertions, 16 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 3c8340bc5cf1..623770ef5077 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -3478,8 +3478,7 @@ void ToolbarSaveInData::SetSystemStyle(
uno::Reference< beans::XPropertySet > xPropSet( xFrame, uno::UNO_QUERY );
if ( xPropSet.is() )
{
- uno::Any a = xPropSet->getPropertyValue(
- OUString( "LayoutManager" ) );
+ uno::Any a = xPropSet->getPropertyValue( "LayoutManager" );
a >>= xLayoutManager;
}
@@ -3990,7 +3989,7 @@ void ToolbarSaveInData::ApplyToolbar( SvxConfigEntry* pToolbar )
if ( pToolbar->IsUserDefined() )
{
xProps->setPropertyValue(
- OUString(ITEM_DESCRIPTOR_UINAME ),
+ ITEM_DESCRIPTOR_UINAME,
uno::makeAny( OUString( pToolbar->GetName() ) ) );
}
@@ -4038,7 +4037,7 @@ void ToolbarSaveInData::CreateToolbar( SvxConfigEntry* pToolbar )
xPropertySet( xSettings, uno::UNO_QUERY );
xPropertySet->setPropertyValue(
- OUString(ITEM_DESCRIPTOR_UINAME ),
+ ITEM_DESCRIPTOR_UINAME,
uno::makeAny( pToolbar->GetName() ) );
try
@@ -5046,8 +5045,7 @@ bool SvxIconSelectorDialog::ReplaceGraphicItem(
uno::Reference< beans::XPropertySet > props =
m_xGraphProvider->queryGraphicDescriptor( aMediaProps );
- uno::Any a = props->getPropertyValue(
- OUString("SizePixel") );
+ uno::Any a = props->getPropertyValue( "SizePixel" );
a >>= aSize;
if (0 == aSize.Width || 0 == aSize.Height)
return false;
@@ -5223,8 +5221,7 @@ bool SvxIconSelectorDialog::ImportGraphic( const OUString& aURL )
uno::Reference< beans::XPropertySet > props =
m_xGraphProvider->queryGraphicDescriptor( aMediaProps );
- uno::Any a = props->getPropertyValue(
- OUString("SizePixel") );
+ uno::Any a = props->getPropertyValue("SizePixel");
xGraphic = m_xGraphProvider->queryGraphic( aMediaProps );
if ( xGraphic.is() )
diff --git a/cui/source/customize/selector.cxx b/cui/source/customize/selector.cxx
index 173a9ecfed08..115dcab17793 100644
--- a/cui/source/customize/selector.cxx
+++ b/cui/source/customize/selector.cxx
@@ -759,14 +759,12 @@ void SvxConfigGroupListBox::GroupSelected()
continue;
}
- Any value = xPropSet->getPropertyValue(
- OUString("URI"));
+ Any value = xPropSet->getPropertyValue("URI");
value >>= uri;
try
{
- value = xPropSet->getPropertyValue(
- OUString("Description"));
+ value = xPropSet->getPropertyValue("Description");
value >>= description;
}
catch (Exception &) {
diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx
index 247cea9321e9..06a8ba26836b 100644
--- a/cui/source/dialogs/hlmarkwn.cxx
+++ b/cui/source/dialogs/hlmarkwn.cxx
@@ -350,7 +350,7 @@ bool SvxHlinkDlgMarkWnd::RefreshFromDoc(const OUString& aURL)
uno::Sequence< beans::PropertyValue > aArg(1);
aArg.getArray()[0].Name = "Hidden";
aArg.getArray()[0].Value <<= true;
- xComp = xLoader->loadComponentFromURL( aURL, OUString( "_blank" ), 0, aArg );
+ xComp = xLoader->loadComponentFromURL( aURL, "_blank", 0, aArg );
}
catch( const io::IOException& )
{
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx
index 6c8a7b579fd3..bade98ceff5c 100644
--- a/cui/source/dialogs/insdlg.cxx
+++ b/cui/source/dialogs/insdlg.cxx
@@ -117,7 +117,7 @@ IMPL_LINK_NOARG_TYPED(SvInsertOleDlg, BrowseHdl, Button*, void)
{
xFilePicker->appendFilter(
OUString(),
- OUString( "*.*" )
+ "*.*"
);
}
catch( const IllegalArgumentException& )
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 52c58ba52369..e4811b902b3e 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -600,8 +600,7 @@ void CanvasSettings::EnabledHardwareAcceleration( bool _bEnabled ) const
if( !xNameReplace.is() )
return;
- xNameReplace->replaceByName( OUString("ForceSafeServiceImpl"),
- makeAny(!_bEnabled) );
+ xNameReplace->replaceByName( "ForceSafeServiceImpl", makeAny(!_bEnabled) );
Reference< XChangesBatch > xChangesBatch(
mxForceFlagNameAccess, UNO_QUERY );