diff options
| author | Martin Hořeňovský | 2019-09-08 18:20:49 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-09-08 18:20:49 +0200 |
| commit | 293012a002ef5351adbfcc0cbf7cdfdc93aed115 (patch) | |
| tree | c178c44ce7b0dd94564ad3887c52b1e07ad7e328 /include/internal | |
| parent | e2b3443fe7211f265c95f878d06d8fd4abf38f27 (diff) | |
| download | catch3-293012a002ef5351adbfcc0cbf7cdfdc93aed115.tar.gz | |
Inline SourceLineInfo::empty definition
Diffstat (limited to 'include/internal')
| -rw-r--r-- | include/internal/catch_common.cpp | 3 | ||||
| -rw-r--r-- | include/internal/catch_common.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/include/internal/catch_common.cpp b/include/internal/catch_common.cpp index b2fca4c4..790acbe5 100644 --- a/include/internal/catch_common.cpp +++ b/include/internal/catch_common.cpp @@ -15,9 +15,6 @@ namespace Catch { - bool SourceLineInfo::empty() const noexcept { - return file[0] == '\0'; - } bool SourceLineInfo::operator == ( SourceLineInfo const& other ) const noexcept { return line == other.line && (file == other.file || std::strcmp(file, other.file) == 0); } diff --git a/include/internal/catch_common.h b/include/internal/catch_common.h index e4745622..5e097fbf 100644 --- a/include/internal/catch_common.h +++ b/include/internal/catch_common.h @@ -57,7 +57,7 @@ namespace Catch { SourceLineInfo( SourceLineInfo&& ) noexcept = default; SourceLineInfo& operator = ( SourceLineInfo&& ) noexcept = default; - bool empty() const noexcept; + bool empty() const noexcept { return file[0] == '\0'; } bool operator == ( SourceLineInfo const& other ) const noexcept; bool operator < ( SourceLineInfo const& other ) const noexcept; |