summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-01-30 19:09:35 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-20 01:25:56 -0400
commitda695330ee333d3210fd6ff236294684e27c5f82 (patch)
tree300b5da7ad08d4d94eea8b1b618a6f7e5969e7e4 /chart2
parentb41c9ce2aaaf7ef38071298c7427f6b0905a9bd9 (diff)
unnecessary use of OUString constructor
Change-Id: Idd31b0a53c8318af69bbcd32f6798721ec8eb8e1 Reviewed-on: https://gerrit.libreoffice.org/21945 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit 1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d)
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/tp_DataSource.cxx11
-rw-r--r--chart2/source/model/template/DataInterpreter.cxx2
-rw-r--r--chart2/source/view/charttypes/GL3DBarChart.cxx4
3 files changed, 8 insertions, 9 deletions
diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx
index aece13483cc5..d7808f8b5952 100644
--- a/chart2/source/controller/dialogs/tp_DataSource.cxx
+++ b/chart2/source/controller/dialogs/tp_DataSource.cxx
@@ -102,8 +102,7 @@ OUString lcl_GetSelectedRole( const SvTabListBox & rRoleListBox, bool bUITransla
OUString aResult;
SvTreeListEntry * pEntry = rRoleListBox.FirstSelected();
if( pEntry )
- aResult = OUString( SvTabListBox::GetEntryText( pEntry,
- bUITranslated ? 1 : 0 ));
+ aResult = SvTabListBox::GetEntryText( pEntry, bUITranslated ? 1 : 0 );
return aResult;
}
@@ -112,7 +111,7 @@ OUString lcl_GetSelectedRolesRange( const SvTabListBox & rRoleListBox )
OUString aResult;
SvTreeListEntry * pEntry = rRoleListBox.FirstSelected();
if( pEntry )
- aResult = OUString( SvTabListBox::GetEntryText( pEntry, 2 ));
+ aResult = SvTabListBox::GetEntryText( pEntry, 2 );
return aResult;
}
@@ -219,7 +218,7 @@ DataSourceTabPage::DataSourceTabPage(
m_pFT_CAPTION->Show(!bHideDescription);
- m_aFixedTextRange = OUString( m_pFT_RANGE->GetText() );
+ m_aFixedTextRange = m_pFT_RANGE->GetText();
this->SetText( SCH_RESSTR( STR_OBJECT_DATASERIES_PLURAL ) );
// set handlers
@@ -425,9 +424,9 @@ void DataSourceTabPage::fillSeriesListBox()
const OUString aReplacementStr( "%NUMBER" );
sal_Int32 nIndex = aResString.indexOf( aReplacementStr );
if( nIndex != -1 )
- aLabel = OUString( aResString.replaceAt(
+ aLabel = aResString.replaceAt(
nIndex, aReplacementStr.getLength(),
- OUString::number(nUnnamedSeriesIndex)));
+ OUString::number(nUnnamedSeriesIndex));
}
if( aLabel.isEmpty() )
aLabel = ::chart::SchResId( STR_DATA_UNNAMED_SERIES ).toString();
diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx
index 18487e884eb3..25a1c8b40661 100644
--- a/chart2/source/model/template/DataInterpreter.cxx
+++ b/chart2/source/model/template/DataInterpreter.cxx
@@ -447,7 +447,7 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource )
aSourceRepr = "<none>";
if( aSequences[k]->getLabel().is())
- aSourceRepr = OUString( aSequences[k]->getLabel()->getSourceRangeRepresentation());
+ aSourceRepr = aSequences[k]->getLabel()->getSourceRangeRepresentation();
xProp.set( aSequences[k]->getLabel(), uno::UNO_QUERY );
if( xProp.is() &&
( xProp->getPropertyValue( "Role") >>= aId ))
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index 4f92b2a2b540..1fa29c79cc1a 100644
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -1153,7 +1153,7 @@ void GL3DBarChart::updateRenderFPS()
osl_getSystemTime(&maFPSRenderStartTime);
}
osl_getSystemTime(&maFPSRenderEndTime);
- OUString aFPS = OUString("Render FPS: ");
+ OUString aFPS = "Render FPS: ";
addScreenTextShape(aFPS, glm::vec2(-0.77f, 0.99f), 0.07f, false, glm::vec4(0.0f, 1.0f, 1.0f, 0.0f));
addScreenTextShape(maFPS, glm::vec2(-0.77f, 0.99f), 0.07f, true,
glm::vec4(1.0f, 0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f));
@@ -1201,7 +1201,7 @@ void GL3DBarChart::updateDataUpdateFPS()
osl_getSystemTime(&maDataUpdateStartTime);
}
osl_getSystemTime(&maDataUpdateEndTime);
- OUString aDataUpdateFPS = OUString("Data Update Rate: ");
+ OUString aDataUpdateFPS = "Data Update Rate: ";
addScreenTextShape(aDataUpdateFPS, glm::vec2(-0.77, 0.92f), 0.07f, false, glm::vec4(0.0f, 1.0f, 1.0f, 0.0f));
addScreenTextShape(maDataUpdateFPS, glm::vec2(-0.77f, 0.92f), 0.07f, true, glm::vec4(1.0f, 0.0f, 0.0f, 0.0f));
}