Adding Floessie's patch to use std::unique_ptr (issue #4008)

This commit is contained in:
Hombre57
2017-08-12 19:21:29 +02:00
parent 1a296b763f
commit d5e4980c08
10 changed files with 71 additions and 61 deletions

View File

@@ -20,12 +20,17 @@
#define __IMAGEDATA_H__
#include <cstdio>
#include "rawimage.h"
#include <memory>
#include <string>
#include <glibmm.h>
#include "../rtexif/rtexif.h"
#include "procparams.h"
#include <libiptcdata/iptc-data.h>
#include "../rtexif/rtexif.h"
#include "procparams.h"
#include "rawimage.h"
#include "rtengine.h"
namespace rtengine
@@ -111,7 +116,7 @@ private:
unsigned int dcrawFrameCount;
public:
FramesData (Glib::ustring fname, RawMetaDataLocation* rml = nullptr, bool firstFrameOnly = false, bool loadAll = false);
FramesData (const Glib::ustring& fname, std::unique_ptr<RawMetaDataLocation> rml = nullptr, bool firstFrameOnly = false, bool loadAll = false);
~FramesData ();
void setDCRawFrameCount (unsigned int frameCount);