Browse Source

Clang-tidy: modernize-use-nodiscard

pull/2243/head
Anders Jenbo 5 years ago
parent
commit
5bb8f184db
  1. 2
      Source/DiabloUI/credits.cpp
  2. 2
      Source/mpqapi.cpp

2
Source/DiabloUI/credits.cpp

@ -125,7 +125,7 @@ public:
void Render();
bool Finished() const
[[nodiscard]] bool Finished() const
{
return finished_;
}

2
Source/mpqapi.cpp

@ -100,7 +100,7 @@ public:
s_ = nullptr;
}
bool IsOpen() const
[[nodiscard]] bool IsOpen() const
{
return s_ != nullptr;
}

Loading…
Cancel
Save