summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-30 16:10:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-30 20:03:41 +0000
commitdb7f33af1438538bb51b376242294ecd3bfcb055 (patch)
tree8e5d6139159130326a4eddaa64406224f5bc9816 /idl
parent7d8ffcc587dc54764e3fc67b8622b7b0c088297e (diff)
loplugin:stringadd in various
when applying my upcoming patch to also consider O[U]StringBuffer Change-Id: I8cf6a47ad357ddc73e2c430d966be72d5efd1485 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149767 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl')
-rw-r--r--idl/source/prj/database.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx
index 9aba715edaf4..229696b021ec 100644
--- a/idl/source/prj/database.cxx
+++ b/idl/source/prj/database.cxx
@@ -417,8 +417,7 @@ void SvIdlDataBase::WriteError( SvTokenStream & rInStm )
// error text
if( !aError.GetText().isEmpty() )
{
- aErrorText.append("may be <");
- aErrorText.append(aError.GetText());
+ aErrorText.append("may be <" + aError.GetText());
}
SvToken * pPrevTok = nullptr;
while( &rTok != pPrevTok )
@@ -431,11 +430,11 @@ void SvIdlDataBase::WriteError( SvTokenStream & rInStm )
}
// error position
- aErrorText.append("> at ( ");
- aErrorText.append(static_cast<sal_Int64>(aError.nLine));
- aErrorText.append(", ");
- aErrorText.append(static_cast<sal_Int64>(aError.nColumn));
- aErrorText.append(" )");
+ aErrorText.append("> at ( "
+ + OString::number(static_cast<sal_Int64>(aError.nLine))
+ + ", "
+ + OString::number(static_cast<sal_Int64>(aError.nColumn))
+ + " )");
// reset error
aError = SvIdlError();