From df2e029a06f065c82dacc28ec885b4307260b6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 13 May 2020 16:40:19 +0200 Subject: macOS: Clean up headers The headers are now C++ clean and can be used outside of Objective-C code. All includes of Objective-C frameworks have been moved to the implementation files. Header guards have been added in the few places they were missing. All includes are now done via #include, instead of sometimes using the #import variant. Change-Id: Ibb0a9c0bcfefbda4347737212e40e300a3184982 Reviewed-by: Volker Hilsheimer --- src/plugins/platforms/cocoa/qnswindowdelegate.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/plugins/platforms/cocoa/qnswindowdelegate.h') diff --git a/src/plugins/platforms/cocoa/qnswindowdelegate.h b/src/plugins/platforms/cocoa/qnswindowdelegate.h index be870deb3a..6d86fb76d2 100644 --- a/src/plugins/platforms/cocoa/qnswindowdelegate.h +++ b/src/plugins/platforms/cocoa/qnswindowdelegate.h @@ -40,16 +40,12 @@ #ifndef QNSWINDOWDELEGATE_H #define QNSWINDOWDELEGATE_H -#include #include QT_BEGIN_NAMESPACE class QCocoaWindow; QT_END_NAMESPACE -@interface QT_MANGLE_NAMESPACE(QNSWindowDelegate) : NSObject -@end - -QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSWindowDelegate); +QT_DECLARE_NAMESPACED_OBJC_INTERFACE(QNSWindowDelegate, NSObject ) #endif // QNSWINDOWDELEGATE_H -- cgit v1.2.3