From 20ecab62689efb583b0280ba92607898a6294363 Mon Sep 17 00:00:00 2001 From: Mitrik Sicilian Date: Thu, 9 Jan 2020 22:43:12 +0100 Subject: [PATCH] Remove redundant const from Mac wxDataFormat methods return type No real changes, but useless top-level const in the return type resulted in -Wignored-qualifiers warning (if it was enabled). Closes #18646. --- include/wx/osx/dataform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/osx/dataform.h b/include/wx/osx/dataform.h index b2cc65b242..8f31948df6 100644 --- a/include/wx/osx/dataform.h +++ b/include/wx/osx/dataform.h @@ -43,8 +43,8 @@ public: // explicit and implicit conversions to NativeFormat which is one of // standard data types (implicit conversion is useful for preserving the // compatibility with old code) - const NativeFormat GetFormatId() const { return m_format; } - operator const NativeFormat() const { return m_format; } + NativeFormat GetFormatId() const { return m_format; } + operator NativeFormat() const { return m_format; } void SetId(NativeFormat format);