This commit is contained in:
Akash Mozumdar 2019-02-04 15:02:06 -05:00
parent b9a4a94d61
commit c78747c228
2 changed files with 3 additions and 5 deletions

View File

@ -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();
}

View File

@ -16,7 +16,8 @@ template<typename E, typename M = std::mutex>
class ThreadSafe
{
public:
template <typename... Args> ThreadSafe(Args&&... args) : contents(std::forward<Args>(args)...) {}
template <typename... Args>
ThreadSafe(Args&&... args) : contents(std::forward<Args>(args)...) {}
auto operator->()
{
struct