From 0148a1e80f3f2b16166a15efa560aec20b81e858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 19 Oct 2021 16:50:59 +0200 Subject: [PATCH] Platform: using std::string::data() to print it is an antipattern. No, just no. --- src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp b/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp index d6c7f068c..f78cb01b6 100644 --- a/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp +++ b/src/Magnum/Platform/Test/EmscriptenApplicationTest.cpp @@ -124,9 +124,9 @@ struct EmscriptenApplicationTest: Platform::Application { { Debug d; if(event.key() != KeyEvent::Key::Unknown) { - d << "keyReleaseEvent(" << Debug::nospace << event.keyName().data() << Debug::nospace << "): ✔"; + d << "keyReleaseEvent(" << Debug::nospace << event.keyName() << Debug::nospace << "): ✔"; } else { - d << "keyReleaseEvent(" << Debug::nospace << event.keyName().data() << Debug::nospace << "): ✘"; + d << "keyReleaseEvent(" << Debug::nospace << event.keyName() << Debug::nospace << "): ✘"; } if(event.modifiers() & KeyEvent::Modifier::Shift) d << "Shift";