summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-29 13:29:23 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-29 20:26:05 +0200
commit0c377feb71d34cc2c0596249f6910dcb2b0d2e30 (patch)
tree4813bbf5ba65f65335ef2f32569e9ee6617e44e4 /chart2
parente4168dabd27af2d34db43a100b8cddcf18d68870 (diff)
no need for this temporary object
Change-Id: I207e8fa781721ed20c306a8c581af1bc03b5d8f2
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
index bdeaa35ab335..65b69b41d0b5 100644
--- a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
+++ b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
@@ -52,15 +52,14 @@ LightButton::LightButton( Window* pParent, const ResId& rResId, sal_Int32 nLight
SetModeImage( Image( SVX_RES(RID_SVXIMAGE_LIGHT_OFF) ) );
OUString aTipHelpStr( SCH_RESSTR(STR_TIP_LIGHTSOURCE_X) );
- OUString aTipHelp( aTipHelpStr );
const OUString aReplacementStr( "%LIGHTNUMBER" );
- sal_Int32 nIndex = aTipHelp.indexOf( aReplacementStr );
+ sal_Int32 nIndex = aTipHelpStr.indexOf( aReplacementStr );
if( nIndex != -1 )
{
- aTipHelp = aTipHelp.replaceAt(nIndex, aReplacementStr.getLength(),
+ aTipHelpStr = aTipHelpStr.replaceAt(nIndex, aReplacementStr.getLength(),
OUString::number( nLightNumber ) );
}
- this->SetQuickHelpText( aTipHelp );
+ this->SetQuickHelpText( aTipHelpStr );
}
LightButton::~LightButton()