From 9f65db2e2b5f0f7e6e441d7bbfbe7f151ccee842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 7 Mar 2022 09:55:42 +0100 Subject: [PATCH] Math: use String::contains() instead of std::find(). An old TODO, yay! --- src/Magnum/Math/Angle.cpp | 10 +++++----- src/Magnum/Math/Half.cpp | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Magnum/Math/Angle.cpp b/src/Magnum/Math/Angle.cpp index 60811b9df..5a08cf5ba 100644 --- a/src/Magnum/Math/Angle.cpp +++ b/src/Magnum/Math/Angle.cpp @@ -26,7 +26,7 @@ #include "Angle.h" #if defined(DOXYGEN_GENERATING_OUTPUT) || defined(CORRADE_TARGET_UNIX) || (defined(CORRADE_TARGET_WINDOWS) && !defined(CORRADE_TARGET_WINDOWS_RT)) || defined(CORRADE_TARGET_EMSCRIPTEN) -#include /** @todo get rid of this once StringView::find() exists */ +#include #include #include @@ -38,7 +38,7 @@ std::pair> TweakableParser> TweakableParser> TweakableParser> TweakableParser #if defined(DOXYGEN_GENERATING_OUTPUT) || defined(CORRADE_TARGET_UNIX) || (defined(CORRADE_TARGET_WINDOWS) && !defined(CORRADE_TARGET_WINDOWS_RT)) || defined(CORRADE_TARGET_EMSCRIPTEN) -#include /** @todo get rid of this once StringView::find() exists */ #include #include #endif @@ -56,7 +55,7 @@ std::pair TweakableParser