Mercurial > hg > orthanc-stone
diff Framework/StoneInitialization.cpp @ 1397:1c2d065ba372
cleanup
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 29 Apr 2020 20:41:36 +0200 |
parents | c38c89684d83 |
children | 30deba7bc8e2 |
line wrap: on
line diff
--- a/Framework/StoneInitialization.cpp Wed Apr 29 19:00:30 2020 +0200 +++ b/Framework/StoneInitialization.cpp Wed Apr 29 20:41:36 2020 +0200 @@ -25,10 +25,6 @@ # error Macro ORTHANC_ENABLE_SDL must be defined #endif -#if !defined(ORTHANC_ENABLE_QT) -# error Macro ORTHANC_ENABLE_QT must be defined -#endif - #if !defined(ORTHANC_ENABLE_SSL) # error Macro ORTHANC_ENABLE_SSL must be defined #endif @@ -48,10 +44,6 @@ # include "Viewport/SdlWindow.h" #endif -#if ORTHANC_ENABLE_QT == 1 -# include <QCoreApplication> -#endif - #if ORTHANC_ENABLE_CURL == 1 # include <Core/HttpClient.h> #endif @@ -122,14 +114,6 @@ // Run-time checks of locale settings, to be run after Qt has // been initialized, as Qt changes locale settings -#if ORTHANC_ENABLE_QT == 1 - if (QCoreApplication::instance() == NULL) - { - throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls, - "Qt must be initialized before Stone"); - } -#endif - { OrthancStone::Vector v; if (!OrthancStone::LinearAlgebra::ParseVector(v, "1.3671875\\-1.3671875") ||