diff options
| author | Martin Hořeňovský | 2021-09-08 00:24:36 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-09-08 00:24:40 +0200 |
| commit | b3a84c798380aca71f872b63121a3f93fb020746 (patch) | |
| tree | 1a798c9d9426e6b15dfbf5aefa412ee8c733decd /src/catch2/internal/catch_string_manip.cpp | |
| parent | c0f866c7cfae9d84c57f1172f44b1355f4636fa7 (diff) | |
| download | catch3-b3a84c798380aca71f872b63121a3f93fb020746.tar.gz | |
Use StringRef in pluralise implementation
This means that it can no longer be safely made ahead of time,
but nothing in our existing code used it like that. Normally it
is constructed and used in the same expression, which is now
more efficient.
Diffstat (limited to 'src/catch2/internal/catch_string_manip.cpp')
| -rw-r--r-- | src/catch2/internal/catch_string_manip.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/catch2/internal/catch_string_manip.cpp b/src/catch2/internal/catch_string_manip.cpp index df6b6c34..0444cd38 100644 --- a/src/catch2/internal/catch_string_manip.cpp +++ b/src/catch2/internal/catch_string_manip.cpp @@ -94,11 +94,6 @@ namespace Catch { return subStrings; } - pluralise::pluralise( std::size_t count, std::string const& label ) - : m_count( count ), - m_label( label ) - {} - std::ostream& operator << ( std::ostream& os, pluralise const& pluraliser ) { os << pluraliser.m_count << ' ' << pluraliser.m_label; if( pluraliser.m_count != 1 ) |