From 855fa079c3cd36d88e4dd8f716007bb5a471eaea Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 1 Apr 2014 23:35:17 +0200 Subject: [PATCH] refs #199, simpflified runtime init --- samples/blackgui/mainwindow_init.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/samples/blackgui/mainwindow_init.cpp b/samples/blackgui/mainwindow_init.cpp index 60c7380dd..c50821572 100644 --- a/samples/blackgui/mainwindow_init.cpp +++ b/samples/blackgui/mainwindow_init.cpp @@ -168,14 +168,11 @@ void MainWindow::init(GuiModes::CoreMode coreMode) if (this->m_timerSimulator == nullptr) this->m_timerSimulator = new QTimer(this); // context - if (this->m_coreMode != GuiModes::CoreInGuiProcess) - { - this->m_rt.reset(new CRuntime(CRuntimeConfig::remote(), this)); - } - else - { - this->m_rt.reset(new CRuntime(CRuntimeConfig::local(), this)); - } + this->m_rt.reset( + this->m_coreMode != GuiModes::CoreInGuiProcess ? + new CRuntime(CRuntimeConfig::remote(), this) : + new CRuntime(CRuntimeConfig::local(), this) + ); // wire GUI signals this->initGuiSignals();