summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-25 18:56:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-25 19:03:28 +0000
commit27b98e9e3b3d21fded40df1912292f381fae4ab0 (patch)
tree79b6e8e64877d32726edc1a397fe6bcb7f0546d6 /reportdesign
parent5607e88d5f2f2eb7a6b0c9c329728589761c3431 (diff)
loplugin:stringadd in registry..sal
after my patch to merge the bufferadd loplugin into stringadd Change-Id: I1658b960d44780f7d9c447246b1178cb70be5e66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149581 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/dlg/Navigator.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/reportdesign/source/ui/dlg/Navigator.cxx b/reportdesign/source/ui/dlg/Navigator.cxx
index 90cc2dc0d45b..24a4e253b849 100644
--- a/reportdesign/source/ui/dlg/Navigator.cxx
+++ b/reportdesign/source/ui/dlg/Navigator.cxx
@@ -82,16 +82,14 @@ static OUString lcl_getName(const uno::Reference< beans::XPropertySet>& _xElemen
uno::Reference< report::XReportControlModel> xReportModel(_xElement,uno::UNO_QUERY);
if ( xFixedText.is() )
{
- sName.append(" : ");
- sName.append(xFixedText->getLabel());
+ sName.append(" : " + xFixedText->getLabel());
}
else if ( xReportModel.is() && _xElement->getPropertySetInfo()->hasPropertyByName(PROPERTY_DATAFIELD) )
{
ReportFormula aFormula( xReportModel->getDataField() );
if ( aFormula.isValid() )
{
- sName.append(" : ");
- sName.append( aFormula.getUndecoratedContent() );
+ sName.append(" : " + aFormula.getUndecoratedContent() );
}
}
return sName.makeStringAndClear();