diff --git a/src/Magnum/GL/Test/ContextTest.cpp b/src/Magnum/GL/Test/ContextTest.cpp index e014477a2b..5b02f5d703 100644 --- a/src/Magnum/GL/Test/ContextTest.cpp +++ b/src/Magnum/GL/Test/ContextTest.cpp @@ -376,7 +376,7 @@ void ContextTest::makeCurrentNoOp() { void ContextTest::extensions() { const char* used[GL::Implementation::ExtensionCount]{}; - std::set unique; + std::set 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 @@ -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,