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:
parent
83c5a2a7aa
commit
640f48d603
11 changed files with 32 additions and 26 deletions
|
@ -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_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue