Mercurial > hg > orthanc
changeset 1915:7454019be8f3
noncopyable
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 09 Feb 2016 14:50:29 +0100 |
parents | 501769757bf9 |
children | 5bcf721bde4f |
files | Core/Images/JpegReader.h Core/Images/JpegWriter.h Core/Images/PngReader.h Core/Images/PngWriter.h |
diffstat | 4 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/Images/JpegReader.h Tue Feb 09 11:47:02 2016 +0100 +++ b/Core/Images/JpegReader.h Tue Feb 09 14:50:29 2016 +0100 @@ -35,10 +35,13 @@ #include "ImageAccessor.h" #include <string> +#include <boost/noncopyable.hpp> namespace Orthanc { - class JpegReader : public ImageAccessor + class JpegReader : + public ImageAccessor, + public boost::noncopyable { private: std::string content_;
--- a/Core/Images/JpegWriter.h Tue Feb 09 11:47:02 2016 +0100 +++ b/Core/Images/JpegWriter.h Tue Feb 09 14:50:29 2016 +0100 @@ -36,10 +36,11 @@ #include <string> #include <stdint.h> +#include <boost/noncopyable.hpp> namespace Orthanc { - class JpegWriter + class JpegWriter : public boost::noncopyable { private: uint8_t quality_;
--- a/Core/Images/PngReader.h Tue Feb 09 11:47:02 2016 +0100 +++ b/Core/Images/PngReader.h Tue Feb 09 14:50:29 2016 +0100 @@ -39,10 +39,13 @@ #include <vector> #include <stdint.h> #include <boost/shared_ptr.hpp> +#include <boost/noncopyable.hpp> namespace Orthanc { - class PngReader : public ImageAccessor + class PngReader : + public ImageAccessor, + public boost::noncopyable { private: struct PngRabi;
--- a/Core/Images/PngWriter.h Tue Feb 09 11:47:02 2016 +0100 +++ b/Core/Images/PngWriter.h Tue Feb 09 14:50:29 2016 +0100 @@ -34,12 +34,13 @@ #include "ImageAccessor.h" +#include <boost/noncopyable.hpp> #include <boost/shared_ptr.hpp> #include <string> namespace Orthanc { - class PngWriter + class PngWriter : public boost::noncopyable { private: struct PImpl;