projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
include/using sorting and some white space.
[dcpomatic.git]
/
src
/
lib
/
scoped_temporary.h
diff --git
a/src/lib/scoped_temporary.h
b/src/lib/scoped_temporary.h
index 986f565a0896a64e507eba34ba7bdbc1d8c94d14..75d9a272f74dab5341e2e3173bce935a90f501b9 100644
(file)
--- a/
src/lib/scoped_temporary.h
+++ b/
src/lib/scoped_temporary.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2012-20
18
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-20
21
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-18,19
+18,23
@@
*/
*/
+
#include <boost/filesystem.hpp>
#include <boost/filesystem.hpp>
-#include <boost/noncopyable.hpp>
#include <cstdio>
#include <cstdio>
+
/** @class ScopedTemporary
* @brief A temporary file which is deleted when the ScopedTemporary object goes out of scope.
*/
/** @class ScopedTemporary
* @brief A temporary file which is deleted when the ScopedTemporary object goes out of scope.
*/
-class ScopedTemporary
: public boost::noncopyable
+class ScopedTemporary
{
public:
ScopedTemporary ();
~ScopedTemporary ();
{
public:
ScopedTemporary ();
~ScopedTemporary ();
+ ScopedTemporary (ScopedTemporary const&) = delete;
+ ScopedTemporary& operator= (ScopedTemporary const&) = delete;
+
/** @return temporary filename */
boost::filesystem::path file () const {
return _file;
/** @return temporary filename */
boost::filesystem::path file () const {
return _file;
@@
-42,5
+46,5
@@
public:
private:
boost::filesystem::path _file;
private:
boost::filesystem::path _file;
- FILE* _open;
+ FILE* _open
= nullptr
;
};
};