From f4a870baf236a0ff0d7b16d6fcc839d1554b9310 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Tue, 15 Oct 2013 17:40:59 +0200 Subject: [PATCH] make sure -DQT_NO_DEBUG is set on windows .... --- cmake/modules/NoKDE.cmake | 4 ++++ src/core/plugins/plugins.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/modules/NoKDE.cmake b/cmake/modules/NoKDE.cmake index e976912..605aea7 100644 --- a/cmake/modules/NoKDE.cmake +++ b/cmake/modules/NoKDE.cmake @@ -21,5 +21,9 @@ if (CMAKE_COMPILER_IS_GNUCXX) set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -fPIC") add_definitions (-D_BSD_SOURCE) endif (CMAKE_SYSTEM_NAME MATCHES Linux) + + if(WIN32) + add_definitions(-DQT_NO_DEBUG -DQT_FORCE_ASSERTS) + endif(WIN32) endif(CMAKE_COMPILER_IS_GNUCXX) diff --git a/src/core/plugins/plugins.h b/src/core/plugins/plugins.h index e83329a..ac152d1 100644 --- a/src/core/plugins/plugins.h +++ b/src/core/plugins/plugins.h @@ -32,13 +32,13 @@ class Application; class SnoreCore; -class SNORE_EXPORT SnorePlugin:public QObject +class SNORE_EXPORT SnorePlugin : public QObject { Q_OBJECT public: SnorePlugin ( const QString &name); virtual ~SnorePlugin(); - virtual bool init( SnoreCore* snore ); + virtual bool init( SnoreCore *snore ); bool isInitialized(); SnoreCore* snore(); const QString &name() const;