diff options
| author | Martin Hořeňovský | 2021-11-20 23:41:57 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-11-23 23:16:46 +0100 |
| commit | b9baae6d938133ff2fdc938053e88ccf51dd3afe (patch) | |
| tree | 7028372a8fe55e39a838f68fda28a4d1b80d9ec3 /src/catch2/internal/catch_stringref.hpp | |
| parent | c95072408fdb6e5cdff2a4d24b2eb991bc8f8ca0 (diff) | |
| download | catch3-b9baae6d938133ff2fdc938053e88ccf51dd3afe.tar.gz | |
Cleanup StringRef impl a bit
Diffstat (limited to 'src/catch2/internal/catch_stringref.hpp')
| -rw-r--r-- | src/catch2/internal/catch_stringref.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/catch2/internal/catch_stringref.hpp b/src/catch2/internal/catch_stringref.hpp index 3d42fc25..e7f1ab70 100644 --- a/src/catch2/internal/catch_stringref.hpp +++ b/src/catch2/internal/catch_stringref.hpp @@ -49,8 +49,8 @@ namespace Catch { } public: // operators - auto operator == ( StringRef const& other ) const noexcept -> bool; - auto operator != (StringRef const& other) const noexcept -> bool { + auto operator == ( StringRef other ) const noexcept -> bool; + auto operator != (StringRef other) const noexcept -> bool { return !(*this == other); } @@ -59,7 +59,7 @@ namespace Catch { return m_start[index]; } - bool operator<(StringRef const& rhs) const noexcept; + bool operator<(StringRef rhs) const noexcept; public: // named queries constexpr auto empty() const noexcept -> bool { @@ -90,8 +90,8 @@ namespace Catch { constexpr const_iterator end() const { return m_start + m_size; } - friend std::string& operator += (std::string& lhs, StringRef const& sr); - friend std::ostream& operator << (std::ostream& os, StringRef const& sr); + friend std::string& operator += (std::string& lhs, StringRef sr); + friend std::ostream& operator << (std::ostream& os, StringRef sr); friend std::string operator+(StringRef lhs, StringRef rhs); /** |