Browse Source

GL: remove unnecessary std::string use from a test.

pull/499/head
Vladimír Vondruš 3 years ago
parent
commit
6a2d7a40ad
  1. 6
      src/Magnum/GL/Test/ContextTest.cpp

6
src/Magnum/GL/Test/ContextTest.cpp

@ -376,7 +376,7 @@ void ContextTest::makeCurrentNoOp() {
void ContextTest::extensions() { void ContextTest::extensions() {
const char* used[GL::Implementation::ExtensionCount]{}; 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 /* 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 not compiled on versions that shouldn't have them, are listed just once
@ -404,12 +404,12 @@ void ContextTest::extensions() {
#endif #endif
Version::None}) Version::None})
{ {
std::string previous; Containers::StringView previous;
for(const Extension& e: Extension::extensions(version)) { for(const Extension& e: Extension::extensions(version)) {
CORRADE_ITERATION(version); CORRADE_ITERATION(version);
CORRADE_ITERATION(e.string()); CORRADE_ITERATION(e.string());
CORRADE_FAIL_IF(!previous.empty() && previous >= e.string(), CORRADE_FAIL_IF(previous && previous >= e.string(),
"Extension not sorted after" << previous); "Extension not sorted after" << previous);
CORRADE_FAIL_IF(e.index() >= GL::Implementation::ExtensionCount, CORRADE_FAIL_IF(e.index() >= GL::Implementation::ExtensionCount,

Loading…
Cancel
Save