libcamera: log: Mark Loggable::_log() methods as const

The methods don't modify the object instance, mark them as const. This
allows using the LOG() macro from a const method of a Loggable object.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Laurent Pinchart
2019-04-11 18:52:56 +03:00
parent 9e3f9c5261
commit 8f6f63a208
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -76,9 +76,10 @@ protected:
virtual std::string logPrefix() const = 0;
LogMessage _log(const char *file, unsigned int line,
LogSeverity severity);
LogSeverity severity) const;
LogMessage _log(const char *file, unsigned int line,
const LogCategory &category, LogSeverity severity);
const LogCategory &category,
LogSeverity severity) const;
};
LogMessage _log(const char *file, unsigned int line, LogSeverity severity);