From 2a33a16253d4f7c6ef989cc3a65ef5bd552ac48b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 27 Apr 2021 22:11:01 +0200 Subject: loplugin:stringadd Change-Id: Iacb72f10f5306143390774e0a3ef30f5a5bf5c57 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114761 Tested-by: Tor Lillqvist Reviewed-by: Tor Lillqvist --- dbaccess/qa/unit/embeddeddb_performancetest.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'dbaccess/qa') diff --git a/dbaccess/qa/unit/embeddeddb_performancetest.cxx b/dbaccess/qa/unit/embeddeddb_performancetest.cxx index ec23226d4016..17eaa52aeb9d 100644 --- a/dbaccess/qa/unit/embeddeddb_performancetest.cxx +++ b/dbaccess/qa/unit/embeddeddb_performancetest.cxx @@ -134,11 +134,11 @@ void EmbeddedDBPerformanceTest::printTimes( const TimeValue* pTime2, const TimeValue* pTime3) { - m_aOutputBuffer - .append(getPrintableTimeValue(pTime1)).append("\t") - .append(getPrintableTimeValue(pTime2)).append("\t") - .append(getPrintableTimeValue(pTime3)).append("\t") - .append("\n"); + m_aOutputBuffer.append( + getPrintableTimeValue(pTime1) + "\t" + + getPrintableTimeValue(pTime2) + "\t" + + getPrintableTimeValue(pTime3) + "\t" + "\n"); } // TODO: we probably should create a document from scratch instead? @@ -278,7 +278,7 @@ void EmbeddedDBPerformanceTest::performPreparedStatementInsertTest( getTimeDifference(&aStart, &aMiddle, &aTimeInsert); getTimeDifference(&aMiddle, &aEnd, &aTimeCommit); getTimeDifference(&aStart, &aEnd, &aTimeTotal); - m_aOutputBuffer.append("Insert: ").append(rDBName).append("\n"); + m_aOutputBuffer.append(OUString::Concat("Insert: ") + rDBName + "\n"); printTimes(&aTimeInsert, &aTimeCommit, &aTimeTotal); pFile->Close(); @@ -316,7 +316,7 @@ void EmbeddedDBPerformanceTest::performStatementInsertTest( getTimeDifference(&aStart, &aMiddle, &aTimeInsert); getTimeDifference(&aMiddle, &aEnd, &aTimeCommit); getTimeDifference(&aStart, &aEnd, &aTimeTotal); - m_aOutputBuffer.append("Insert: ").append(rDBName).append("\n"); + m_aOutputBuffer.append(OUString::Concat("Insert: ") + rDBName + "\n"); printTimes(&aTimeInsert, &aTimeCommit, &aTimeTotal); pFile->Close(); @@ -347,7 +347,7 @@ void EmbeddedDBPerformanceTest::performReadTest( getTimeDifference(&aStart, &aMiddle, &aTimeSelect); getTimeDifference(&aMiddle, &aEnd, &aTimeIterate); getTimeDifference(&aStart, &aEnd, &aTimeTotal); - m_aOutputBuffer.append("Read from: ").append(rDBName).append("\n"); + m_aOutputBuffer.append(OUString::Concat("Read from: ") + rDBName + "\n"); printTimes(&aTimeSelect, &aTimeIterate, &aTimeTotal); } -- cgit