From fe4d55f30d9c8bbe2f6bef4478788f5b58abdbd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 16 Apr 2021 15:19:54 +0200 Subject: [PATCH] DebugTools: missing forward declaration for FrameProfiler. And the old Profiler wasn't properly marked as deprecated there. --- src/Magnum/DebugTools/DebugTools.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Magnum/DebugTools/DebugTools.h b/src/Magnum/DebugTools/DebugTools.h index 5f5c4c792..5bb47690f 100644 --- a/src/Magnum/DebugTools/DebugTools.h +++ b/src/Magnum/DebugTools/DebugTools.h @@ -31,12 +31,21 @@ #include "Magnum/Types.h" +#ifdef MAGNUM_BUILD_DEPRECATED +#include +#endif + namespace Magnum { namespace DebugTools { #ifndef DOXYGEN_GENERATING_OUTPUT -class Profiler; +#ifdef MAGNUM_BUILD_DEPRECATED +class CORRADE_DEPRECATED("use FrameProfiler instead") Profiler; +#endif +class FrameProfiler; #ifdef MAGNUM_TARGET_GL +class GLFrameProfiler; + template class ForceRenderer; typedef ForceRenderer<2> ForceRenderer2D; typedef ForceRenderer<3> ForceRenderer3D;