summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2018-08-22 23:31:36 -0400
committerHubert Figuière <hub@figuiere.net>2018-08-22 23:32:01 -0400
commitc47d9e29dd70797623741ae16e9f8be20497c3ba (patch)
tree9931c7fd0404b16a715180f3c3712e66c09ab98f /demo
parent8fdd5a50f49b266aa443fea59aafa6d1f4943fca (diff)
test: remove leftover from boost that are no longer needed
Diffstat (limited to 'demo')
-rw-r--r--demo/cfa.cpp8
-rw-r--r--demo/thumb.cpp5
2 files changed, 5 insertions, 8 deletions
diff --git a/demo/cfa.cpp b/demo/cfa.cpp
index be6a302..fb7348e 100644
--- a/demo/cfa.cpp
+++ b/demo/cfa.cpp
@@ -1,7 +1,7 @@
/*
* libopenraw - cfa.cpp
*
- * Copyright (C) 2007-2016 Hubert Figuiere
+ * Copyright (C) 2007-2018 Hubert Figuiere
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <iostream>
+#include <memory>
#include <libopenraw/libopenraw.h>
#include <libopenraw/debug.h>
@@ -29,10 +30,7 @@
#include "rawfile.hpp"
#include "rawdata.hpp"
-#include <boost/scoped_ptr.hpp>
-
using OpenRaw::Thumbnail;
-using boost::scoped_ptr;
int
main(int argc, char** argv)
@@ -58,7 +56,7 @@ main(int argc, char** argv)
FILE * f;
size_t written_size;
- scoped_ptr<OpenRaw::RawFile> raw_file(OpenRaw::RawFile::newRawFile(argv[optind]));
+ std::unique_ptr<OpenRaw::RawFile> raw_file(OpenRaw::RawFile::newRawFile(argv[optind]));
OpenRaw::RawData rdata;
uint32_t options = (keepCompressed ? OR_OPTIONS_DONT_DECOMPRESS : 0);
diff --git a/demo/thumb.cpp b/demo/thumb.cpp
index 3094696..e755c0c 100644
--- a/demo/thumb.cpp
+++ b/demo/thumb.cpp
@@ -1,5 +1,5 @@
/*
- * libopenraw - thumbcpp
+ * libopenraw - thumb.cpp
*
* Copyright (C) 2006-2016 Hubert Figuiere
*
@@ -22,14 +22,13 @@
#include <stdio.h>
#include <iostream>
+#include <memory>
#include <libopenraw/libopenraw.h>
#include <libopenraw/debug.h>
#include "thumbnail.hpp"
#include "rawfile.hpp"
-#include <boost/scoped_ptr.hpp>
-
using OpenRaw::Thumbnail;
void writeThumbnail(const std::unique_ptr<Thumbnail> & thumb,