Introduce rtengine/noncopyable.hpp
This commit is contained in:
@@ -20,8 +20,10 @@
|
||||
#define __RAWIMAGE_H
|
||||
|
||||
#include <ctime>
|
||||
|
||||
#include "dcraw.h"
|
||||
#include "imageio.h"
|
||||
#include "noncopyable.h"
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
@@ -32,7 +34,8 @@ struct badPix {
|
||||
badPix( uint16_t xc, uint16_t yc ): x(xc), y(yc) {}
|
||||
};
|
||||
|
||||
class PixelsMap
|
||||
class PixelsMap :
|
||||
public NonCopyable
|
||||
{
|
||||
int w; // line width in base_t units
|
||||
int h; // height
|
||||
@@ -49,8 +52,6 @@ public:
|
||||
memset(pm, 0, h * w * base_t_size );
|
||||
}
|
||||
|
||||
PixelsMap(const PixelsMap&) = delete;
|
||||
|
||||
~PixelsMap()
|
||||
{
|
||||
delete [] pm;
|
||||
|
Reference in New Issue
Block a user