From ead89d6b402d9323390f25a44f0bf100bba4083c Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 18 Jul 2023 01:03:09 +0200 Subject: Clang-tidy CI test: add some performance checks in clang-tidy CI test (#4077) * add some performance checks in clang-tidy CI test * fix few smalle performance issues found with clang-tidy * fix bug * fixed bug * fixed performance issue --- Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp') diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp index eb011f7fb..6608123bb 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp @@ -211,7 +211,7 @@ FlushFormatCheckpoint::WriteDMaps (const std::string& dir, int nlev) const for (int lev = 0; lev < nlev; ++lev) { std::string DMFileName = dir; if (!DMFileName.empty() && DMFileName[DMFileName.size()-1] != '/') {DMFileName += '/';} - DMFileName = amrex::Concatenate(DMFileName + "Level_", lev, 1); + DMFileName = amrex::Concatenate(DMFileName.append("Level_"), lev, 1); DMFileName += "/DM"; std::ofstream DMFile; -- cgit v1.2.3