comparison Core/Toolbox.cpp @ 3712:2a170a8f1faf

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 15:32:45 +0100
parents 94f4a18a79cc
children 56f2397f027a faa695f433d5
comparison
equal deleted inserted replaced
3709:1f4910999fe7 3712:2a170a8f1faf
32 32
33 33
34 #include "PrecompiledHeaders.h" 34 #include "PrecompiledHeaders.h"
35 #include "Toolbox.h" 35 #include "Toolbox.h"
36 36
37 #include "Compatibility.h"
37 #include "OrthancException.h" 38 #include "OrthancException.h"
38 #include "Logging.h" 39 #include "Logging.h"
39 40
40 #include <boost/algorithm/string/case_conv.hpp> 41 #include <boost/algorithm/string/case_conv.hpp>
41 #include <boost/algorithm/string/replace.hpp> 42 #include <boost/algorithm/string/replace.hpp>
1432 return IsUuid(str.substr(0, 36)); 1433 return IsUuid(str.substr(0, 36));
1433 } 1434 }
1434 1435
1435 1436
1436 #if ORTHANC_ENABLE_LOCALE == 1 1437 #if ORTHANC_ENABLE_LOCALE == 1
1437 static std::auto_ptr<std::locale> globalLocale_; 1438 static std::unique_ptr<std::locale> globalLocale_;
1438 1439
1439 static bool SetGlobalLocale(const char* locale) 1440 static bool SetGlobalLocale(const char* locale)
1440 { 1441 {
1441 try 1442 try
1442 { 1443 {