Skip to content

Commit

Permalink
GL: remove unnecessary std::string use from a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Dec 31, 2022
1 parent d39184f commit e19373e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Magnum/GL/Test/ContextTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ void ContextTest::makeCurrentNoOp() {
void ContextTest::extensions() {
const char* used[GL::Implementation::ExtensionCount]{};

std::set<std::string> unique;
std::set<Containers::StringView> unique;

/* Check that all extension indices are unique, are in correct lists, are
not compiled on versions that shouldn't have them, are listed just once
Expand Down Expand Up @@ -404,12 +404,12 @@ void ContextTest::extensions() {
#endif
Version::None})
{
std::string previous;
Containers::StringView previous;
for(const Extension& e: Extension::extensions(version)) {
CORRADE_ITERATION(version);
CORRADE_ITERATION(e.string());

CORRADE_FAIL_IF(!previous.empty() && previous >= e.string(),
CORRADE_FAIL_IF(previous && previous >= e.string(),
"Extension not sorted after" << previous);

CORRADE_FAIL_IF(e.index() >= GL::Implementation::ExtensionCount,
Expand Down

0 comments on commit e19373e

Please sign in to comment.