diff options
author | Max Kellermann <max@duempel.org> | 2016-05-11 17:10:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-05-11 17:10:15 +0200 |
commit | a67b7266ed66f2422f331eb4b59eca5300c6fda3 (patch) | |
tree | 23df240974be17f07aaba24b3219f83efc391381 /src | |
parent | f26159a0e39b3d8c031d62db57f2313a95c7107d (diff) |
util/AllocatedString: work around bogus gcc6 warning
Diffstat (limited to 'src')
-rw-r--r-- | src/util/AllocatedString.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/AllocatedString.hxx b/src/util/AllocatedString.hxx index 77f8e2a0a..95872ff6f 100644 --- a/src/util/AllocatedString.hxx +++ b/src/util/AllocatedString.hxx @@ -103,12 +103,12 @@ public: return *this; } - constexpr bool operator==(std::nullptr_t other) const { - return value == other; + constexpr bool operator==(std::nullptr_t) const { + return value == nullptr; } - constexpr bool operator!=(std::nullptr_t other) const { - return value != other; + constexpr bool operator!=(std::nullptr_t) const { + return value != nullptr; } constexpr bool IsNull() const { |