From 9c1a8f0500912e7b517a6a5ede4427bea6eb3e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 1 Jun 2026 18:46:38 +0200 Subject: [PATCH] Text: useless const in test code. Marking local variables as const is desirable in actual library code, in tests it's just extra noise that doesn't really help anything. --- src/Magnum/Text/Test/AbstractFontTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Text/Test/AbstractFontTest.cpp b/src/Magnum/Text/Test/AbstractFontTest.cpp index 648b7a570..996c3dcc5 100644 --- a/src/Magnum/Text/Test/AbstractFontTest.cpp +++ b/src/Magnum/Text/Test/AbstractFontTest.cpp @@ -228,7 +228,7 @@ void AbstractFontTest::openData() { bool doIsOpened() const override { return _opened; } void doClose() override {} - Properties doOpenData(const Containers::ArrayView data, Float size) override { + Properties doOpenData(Containers::ArrayView data, Float size) override { _opened = (data.size() == 1 && data[0] == '\xa5'); return {size, 1.0f, 2.0f, 3.0f, 15}; } @@ -258,7 +258,7 @@ void AbstractFontTest::openFileAsData() { bool doIsOpened() const override { return _opened; } void doClose() override {} - Properties doOpenData(const Containers::ArrayView data, Float size) override { + Properties doOpenData(Containers::ArrayView data, Float size) override { _opened = (data.size() == 1 && data[0] == '\xa5'); return {size, 1.0f, 2.0f, 3.0f, 15}; } @@ -769,7 +769,7 @@ void AbstractFontTest::properties() { bool doIsOpened() const override { return _opened; } void doClose() override {} - Properties doOpenData(const Containers::ArrayView, Float size) override { + Properties doOpenData(Containers::ArrayView, Float size) override { _opened = true; return {size, 1.0f, 2.0f, 3.0f, 15}; }