Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-05-09 21:02:12 +0200
committerMartin Hořeňovský2020-05-09 21:02:12 +0200
commiteef6c9b79b43a4f5a902813093266f5a8633eb60 (patch)
tree2398f3f4b801ec03b20ae391ff69655c7fc63900 /src/catch2
parentb5a287f09fd3837c4285f5b8c19302221a1885c3 (diff)
downloadcatch3-eef6c9b79b43a4f5a902813093266f5a8633eb60.tar.gz
Microopt: stream single char instead of single char string
Diffstat (limited to 'src/catch2')
-rw-r--r--src/catch2/internal/catch_decomposer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/catch2/internal/catch_decomposer.cpp b/src/catch2/internal/catch_decomposer.cpp
index d227c534..e1018cd6 100644
--- a/src/catch2/internal/catch_decomposer.cpp
+++ b/src/catch2/internal/catch_decomposer.cpp
@@ -12,13 +12,13 @@
namespace Catch {
ITransientExpression::~ITransientExpression() = default;
-
+
void formatReconstructedExpression( std::ostream &os, std::string const& lhs, StringRef op, std::string const& rhs ) {
if( lhs.size() + rhs.size() < 40 &&
lhs.find('\n') == std::string::npos &&
rhs.find('\n') == std::string::npos )
- os << lhs << " " << op << " " << rhs;
+ os << lhs << ' ' << op << ' ' << rhs;
else
- os << lhs << "\n" << op << "\n" << rhs;
+ os << lhs << '\n' << op << '\n' << rhs;
}
}