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>
This commit is contained in:
Kieran Bingham 2020-10-22 14:12:26 +01:00
parent 83c5a2a7aa
commit 640f48d603
11 changed files with 32 additions and 26 deletions

View file

@ -10,6 +10,8 @@
#include <chrono>
#include <sstream>
#include <libcamera/class.h>
#include "libcamera/internal/utils.h"
namespace libcamera {
@ -57,7 +59,7 @@ public:
LogSeverity severity);
LogMessage(const char *fileName, unsigned int line,
const LogCategory &category, LogSeverity severity);
LogMessage(const LogMessage &) = delete;
LogMessage(LogMessage &&);
~LogMessage();
@ -70,6 +72,8 @@ public:
const std::string msg() const { return msgStream_.str(); }
private:
LIBCAMERA_DISABLE_COPY(LogMessage)
void init(const char *fileName, unsigned int line);
std::ostringstream msgStream_;