summaryrefslogtreecommitdiff
path: root/include/libcamera/internal/file.h
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2020-10-22 14:12:26 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-02-12 14:35:20 +0000
commit640f48d60399fe63f549f6cb5fa8623a6b6b2810 (patch)
tree3802132387aa0f9310e7d0efd5cde23a72e263a0 /include/libcamera/internal/file.h
parent83c5a2a7aa67b609bc5c14698b76b9eaee644d17 (diff)
libcamera: Utilise LIBCAMERA_DISABLE_COPY
Replace existing use cases where the copy constructor and copy assignment operator are deleted with the LIBCAMERA_DISABLE_COPY statement Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include/libcamera/internal/file.h')
-rw-r--r--include/libcamera/internal/file.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libcamera/internal/file.h b/include/libcamera/internal/file.h
index 9b6d011f..f0b313a5 100644
--- a/include/libcamera/internal/file.h
+++ b/include/libcamera/internal/file.h
@@ -11,6 +11,7 @@
#include <string>
#include <sys/types.h>
+#include <libcamera/class.h>
#include <libcamera/span.h>
namespace libcamera {
@@ -34,9 +35,6 @@ public:
File();
~File();
- File(const File &) = delete;
- File &operator=(const File &) = delete;
-
const std::string &fileName() const { return name_; }
void setFileName(const std::string &name);
bool exists() const;
@@ -62,6 +60,8 @@ public:
static bool exists(const std::string &name);
private:
+ LIBCAMERA_DISABLE_COPY(File)
+
void unmapAll();
std::string name_;