From 9fe919966ff583444f91d3fcc4d168096bcb488d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 5 Jan 2025 13:54:29 +0100 Subject: [PATCH] Audio: don't use std::string for no reason in tests. Still a lot left to clean up in this library, tho. --- src/Magnum/Audio/Test/ContextTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Audio/Test/ContextTest.cpp b/src/Magnum/Audio/Test/ContextTest.cpp index e3b39c36f..a83b3b4cd 100644 --- a/src/Magnum/Audio/Test/ContextTest.cpp +++ b/src/Magnum/Audio/Test/ContextTest.cpp @@ -73,14 +73,14 @@ void ContextTest::constructCopyMove() { void ContextTest::extensions() { const char* used[Implementation::ExtensionCount]{}; - std::set unique; + std::set unique; /* Check that all extension indices are unique, are listed just once etc. */ - std::string previous; + Containers::StringView previous; for(const Extension& e: Extension::extensions()) { 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() >= Implementation::ExtensionCount,