From e19373e45024f6d39372554e20bd7a67a9c6feb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 31 Dec 2022 04:33:36 +0100 Subject: [PATCH] GL: remove unnecessary std::string use from a test. --- src/Magnum/GL/Test/ContextTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,