Mercurial > hg > orthanc
diff Core/Toolbox.cpp @ 1103:bec1eccf976c
Hot restart of Orthanc
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 07 Aug 2014 11:33:46 +0200 |
parents | ce6386b37afd |
children | 929bf8c2123d |
line wrap: on
line diff
--- a/Core/Toolbox.cpp Thu Aug 07 10:51:35 2014 +0200 +++ b/Core/Toolbox.cpp Thu Aug 07 11:33:46 2014 +0200 @@ -124,7 +124,7 @@ } - static void ServerBarrierInternal(bool* stopFlag) + static void ServerBarrierInternal(const bool* stopFlag) { #if defined(_WIN32) SetConsoleCtrlHandler(ConsoleControlHandler, true); @@ -151,14 +151,14 @@ } - void Toolbox::ServerBarrier(bool& stopFlag) + void Toolbox::ServerBarrier(const bool& stopFlag) { ServerBarrierInternal(&stopFlag); } void Toolbox::ServerBarrier() { - bool stopFlag = false; + const bool stopFlag = false; ServerBarrierInternal(&stopFlag); }