Mercurial > hg > orthanc
diff Core/ImageFormats/ImageAccessor.cpp @ 1486:f967bdf8534e
refactoring to Logging.h
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Aug 2015 10:01:31 +0200 |
parents | 704de8c30ff5 |
children | e460341872dc |
line wrap: on
line diff
--- a/Core/ImageFormats/ImageAccessor.cpp Tue Aug 04 09:35:09 2015 +0200 +++ b/Core/ImageFormats/ImageAccessor.cpp Tue Aug 04 10:01:31 2015 +0200 @@ -33,6 +33,7 @@ #include "../PrecompiledHeaders.h" #include "ImageAccessor.h" +#include "../Logging.h" #include "../OrthancException.h" #include "../ChunkedBuffer.h" @@ -40,9 +41,6 @@ #include <cassert> #include <boost/lexical_cast.hpp> -#if HAVE_GOOGLE_LOG == 1 -#include <glog/logging.h> -#endif namespace Orthanc @@ -108,10 +106,7 @@ { if (readOnly_) { -#if HAVE_GOOGLE_LOG == 1 LOG(ERROR) << "Trying to write on a read-only image"; -#endif - throw OrthancException(ErrorCode_ReadOnly); } @@ -136,10 +131,7 @@ { if (readOnly_) { -#if HAVE_GOOGLE_LOG == 1 LOG(ERROR) << "Trying to write on a read-only image"; -#endif - throw OrthancException(ErrorCode_ReadOnly); }