diff options
Diffstat (limited to 'include/libcamera/internal/file.h')
-rw-r--r-- | include/libcamera/internal/file.h | 6 |
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_; |