From c78747c22865c15b961bc564e011704fa0b1a858 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Mon, 4 Feb 2019 15:02:06 -0500 Subject: [PATCH] refactor --- GUI/main.cpp | 5 +---- include/types.h | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/GUI/main.cpp b/GUI/main.cpp index 5dbebb2..9aac425 100644 --- a/GUI/main.cpp +++ b/GUI/main.cpp @@ -7,8 +7,5 @@ int main(int argc, char *argv[]) { QDir::setCurrent(QFileInfo(S(Util::GetModuleFilename().value())).absolutePath()); - QApplication a(argc, argv); - MainWindow w; - w.show(); - return a.exec(); + return QApplication(argc, argv), MainWindow().show(), QApplication::exec(); } diff --git a/include/types.h b/include/types.h index 28f5ab6..f13cd6a 100644 --- a/include/types.h +++ b/include/types.h @@ -16,7 +16,8 @@ template class ThreadSafe { public: - template ThreadSafe(Args&&... args) : contents(std::forward(args)...) {} + template + ThreadSafe(Args&&... args) : contents(std::forward(args)...) {} auto operator->() { struct