diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-31 17:37:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-08 08:44:33 +0200 |
commit | 913b4e7d856ad6392588886a4124d05676e8968d (patch) | |
tree | 0657c6a9bacb68cbc30a93e394c207086f317938 /svx/source/tbxctrls | |
parent | a5536d9a0eac922d18f9008122034ca943d50148 (diff) |
remove unnecessary use of OUString constructor in SVX module
Change-Id: I1506daaa4a3b736ee6bbb00100fca24df8368298
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 38 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 14 |
2 files changed, 26 insertions, 26 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 2a25406595e7..f7976e8ab12b 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -447,16 +447,16 @@ void SvxStyleBox_Impl::Select() Sequence< PropertyValue > aArgs( 2 ); aArgs[0].Value = makeAny( OUString( aSearchEntry ) ); - aArgs[1].Name = OUString("Family"); + aArgs[1].Name = "Family"; aArgs[1].Value = makeAny( sal_Int16( eStyleFamily )); if( bCreateNew ) { - aArgs[0].Name = OUString("Param"); + aArgs[0].Name = "Param"; SfxToolBoxControl::Dispatch( m_xDispatchProvider, OUString(".uno:StyleNewByExample"), aArgs); } else { - aArgs[0].Name = OUString("Template"); + aArgs[0].Name = "Template"; SfxToolBoxControl::Dispatch( m_xDispatchProvider, m_aCommand, aArgs ); } } @@ -995,7 +995,7 @@ void SvxFontNameBox_Impl::UserDraw( const UserDrawEvent& rUDEvt ) aInfo.GetCharSet(), SID_ATTR_CHAR_FONT ); aFontItem.QueryValue( aArgs[0].Value ); - aArgs[0].Name = OUString( "CharPreviewFontName" ); + aArgs[0].Name = "CharPreviewFontName"; SfxToolBoxControl::Dispatch( m_xDispatchProvider, OUString( ".uno:CharPreviewFontName" ), aArgs ); @@ -1035,7 +1035,7 @@ void SvxFontNameBox_Impl::Select() EndPreview(); if ( pFontItem.get() ) { - aArgs[0].Name = OUString( "CharFontName" ); + aArgs[0].Name = "CharFontName"; SfxToolBoxControl::Dispatch( m_xDispatchProvider, OUString( ".uno:CharFontName" ), aArgs ); @@ -1050,7 +1050,7 @@ void SvxFontNameBox_Impl::Select() } if ( pFontItem.get() ) { - aArgs[0].Name = OUString( "CharPreviewFontName" ); + aArgs[0].Name = "CharPreviewFontName"; SfxToolBoxControl::Dispatch( m_xDispatchProvider, OUString( ".uno:CharPreviewFontName" ), aArgs ); @@ -1438,10 +1438,10 @@ IMPL_LINK_NOARG(SvxFrameWindow_Impl, SelectHdl) Any a; Sequence< PropertyValue > aArgs( 2 ); - aArgs[0].Name = OUString( "OuterBorder" ); + aArgs[0].Name = "OuterBorder"; aBorderOuter.QueryValue( a ); aArgs[0].Value = a; - aArgs[1].Name = OUString( "InnerBorder" ); + aArgs[1].Name = "InnerBorder"; aBorderInner.QueryValue( a ); aArgs[1].Value = a; @@ -1611,7 +1611,7 @@ IMPL_LINK_NOARG(SvxLineWindow_Impl, SelectHdl) Any a; Sequence< PropertyValue > aArgs( 1 ); - aArgs[0].Name = OUString( "LineStyle" ); + aArgs[0].Name = "LineStyle"; aLineItem.QueryValue( a, m_bIsWriter ? CONVERT_TWIPS : 0 ); aArgs[0].Value = a; @@ -2587,29 +2587,29 @@ void SvxColorExtToolBoxControl::Select( sal_Bool ) { case SID_ATTR_CHAR_COLOR2 : bNoArgs = true; - aCommand = OUString( ".uno:CharColorExt" ); - aParamName = OUString( "CharColorExt" ); + aCommand = ".uno:CharColorExt"; + aParamName = "CharColorExt"; break; case SID_ATTR_CHAR_COLOR : - aCommand = OUString( ".uno:Color" ); - aParamName = OUString( "Color" ); + aCommand = ".uno:Color"; + aParamName = "Color"; break; case SID_BACKGROUND_COLOR : - aCommand = OUString( ".uno:BackgroundColor" ); - aParamName = OUString( "BackgroundColor" ); + aCommand = ".uno:BackgroundColor"; + aParamName = "BackgroundColor"; break; case SID_ATTR_CHAR_COLOR_BACKGROUND : bNoArgs = true; - aCommand = OUString( ".uno:CharBackgroundExt" ); - aParamName = OUString( "CharBackgroundExt" ); + aCommand = ".uno:CharBackgroundExt"; + aParamName = "CharBackgroundExt"; break; case SID_FRAME_LINECOLOR : - aCommand = OUString( ".uno:FrameLineColor" ); - aParamName = OUString( "FrameLineColor" ); + aCommand = ".uno:FrameLineColor"; + aParamName = "FrameLineColor"; break; } diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index e1bac23aad38..6089e39f5423 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -395,7 +395,7 @@ css::uno::Sequence< OUString > SAL_CALL FindTextToolbarController::getSupportedS css::uno::Sequence< OUString > FindTextToolbarController::getSupportedServiceNames_Static() throw() { css::uno::Sequence< OUString > aSNS( 1 ); - aSNS.getArray()[0] = OUString( "com.sun.star.frame.ToolbarController" ); + aSNS[0] = "com.sun.star.frame.ToolbarController"; return aSNS; } @@ -561,7 +561,7 @@ css::uno::Sequence< OUString > SAL_CALL UpDownSearchToolboxController::getSuppor css::uno::Sequence< OUString > UpDownSearchToolboxController::getSupportedServiceNames_Static() throw() { css::uno::Sequence< OUString > aSNS( 1 ); - aSNS.getArray()[0] = OUString("com.sun.star.frame.ToolbarController"); + aSNS[0] = "com.sun.star.frame.ToolbarController"; return aSNS; } @@ -662,7 +662,7 @@ css::uno::Sequence< OUString > SAL_CALL MatchCaseToolboxController::getSupported css::uno::Sequence< OUString > MatchCaseToolboxController::getSupportedServiceNames_Static() throw() { css::uno::Sequence< OUString > aSNS( 1 ); - aSNS.getArray()[0] = OUString( "com.sun.star.frame.ToolbarController" ); + aSNS[0] = "com.sun.star.frame.ToolbarController"; return aSNS; } @@ -774,7 +774,7 @@ css::uno::Sequence< OUString > SAL_CALL FindAllToolboxController::getSupportedSe css::uno::Sequence< OUString > FindAllToolboxController::getSupportedServiceNames_Static() throw() { css::uno::Sequence< OUString > aSNS( 1 ); - aSNS.getArray()[0] = OUString("com.sun.star.frame.ToolbarController"); + aSNS[0] = "com.sun.star.frame.ToolbarController"; return aSNS; } @@ -869,7 +869,7 @@ css::uno::Sequence< OUString > SAL_CALL ExitSearchToolboxController::getSupporte css::uno::Sequence< OUString > ExitSearchToolboxController::getSupportedServiceNames_Static() throw() { css::uno::Sequence< OUString > aSNS( 1 ); - aSNS.getArray()[0] = OUString("com.sun.star.frame.ToolbarController"); + aSNS[0] = "com.sun.star.frame.ToolbarController"; return aSNS; } @@ -977,8 +977,8 @@ css::uno::Sequence< OUString > SAL_CALL FindbarDispatcher::getSupportedServiceNa css::uno::Sequence< OUString > FindbarDispatcher::getSupportedServiceNames_Static() throw() { css::uno::Sequence< OUString > aSNS( 2 ); - aSNS.getArray()[0] = OUString( "com.sun.star.comp.svx.FindbarDispatcher" ); - aSNS.getArray()[1] = OUString( "com.sun.star.frame.ProtocolHandler" ); + aSNS[0] = "com.sun.star.comp.svx.FindbarDispatcher"; + aSNS[1] = "com.sun.star.frame.ProtocolHandler"; return aSNS; } |