From 440b2f9c9363f3fc7f01242719372a0034a873ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Fri, 13 Mar 2015 00:47:31 +0100 Subject: [PATCH] - Remove includes of metatypes.h - Remove "noexcept" from connectActions() to avoid the need of #ifdef --- datamanager.h | 1 - gui/graphview.h | 1 - gui/mainwindow.cpp | 4 ---- gui/mainwindow.h | 5 ----- main.cpp | 5 ----- 5 files changed, 16 deletions(-) diff --git a/datamanager.h b/datamanager.h index 0c0dcaa..1d98f9b 100644 --- a/datamanager.h +++ b/datamanager.h @@ -37,7 +37,6 @@ #include #include #include -#include "metatypes.h" typedef std::function, std::vector&)> GeneratorFunc; typedef std::map> SequenceMap; diff --git a/gui/graphview.h b/gui/graphview.h index b4795aa..9177a04 100644 --- a/gui/graphview.h +++ b/gui/graphview.h @@ -26,7 +26,6 @@ #include "gui/graphviewcontextmenu.h" #include "signaldrawer.h" -#include "metatypes.h" #include #include diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 158a3c6..5da3a9e 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -55,11 +55,7 @@ void MainWindow::setSingleRunsListModel(SingleRunsSelectorModel* model) /* Private methods */ -#ifdef Q_OS_UNIX -void MainWindow::connectActions() noexcept -#elif defined Q_OS_WIN void MainWindow::connectActions() -#endif { /* Controls panel */ connect(ui->qpb_integrateBaseline, SIGNAL(pressed()), this, SLOT(onIntegrateBaselineSelected())); diff --git a/gui/mainwindow.h b/gui/mainwindow.h index bab4ce6..5a3b4f3 100644 --- a/gui/mainwindow.h +++ b/gui/mainwindow.h @@ -32,7 +32,6 @@ #include #include #include -#include "metatypes.h" namespace Ui { class MainWindow; @@ -49,11 +48,7 @@ public: void setSingleRunsListModel(SingleRunsSelectorModel* model); private: -#ifdef Q_OS_UNIX - void connectActions() noexcept; -#elif defined Q_OS_WIN void connectActions(); -#endif //std::vector m_itemsOnDashboard; QSplitter* m_dashboard; diff --git a/main.cpp b/main.cpp index a16616b..a201577 100644 --- a/main.cpp +++ b/main.cpp @@ -35,11 +35,6 @@ int main(int argc, char *argv[]) a.setOrganizationName(GlobalInfo::ORG_NAME); UserSettings::initialize(); -#ifndef _MSC_VER -#warning Revisit the metatype shared_ptr registration -#endif - //qRegisterMetaType>(); - Logger::initializeGlobal(); Logger::setPrintLevel(Logger::Level::DEBUG); std::unique_ptr dMgr; -- 2.43.5