treewide: Remove top-level const from return types
Top-level `const` qualifiers are not useful, so avoid them. This is done either by simply removing the top-level `const`, or making the function return a reference to const where that is appropriate. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
This commit is contained in:
@@ -75,7 +75,7 @@ public:
|
||||
const LogCategory &category() const { return category_; }
|
||||
const std::string &fileInfo() const { return fileInfo_; }
|
||||
const std::string &prefix() const { return prefix_; }
|
||||
const std::string msg() const { return msgStream_.str(); }
|
||||
std::string msg() const { return msgStream_.str(); }
|
||||
|
||||
private:
|
||||
LIBCAMERA_DISABLE_COPY_AND_MOVE(LogMessage)
|
||||
|
||||
@@ -31,7 +31,7 @@ public:
|
||||
int x;
|
||||
int y;
|
||||
|
||||
const std::string toString() const;
|
||||
std::string toString() const;
|
||||
|
||||
constexpr Point operator-() const
|
||||
{
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
unsigned int height;
|
||||
|
||||
bool isNull() const { return !width && !height; }
|
||||
const std::string toString() const;
|
||||
std::string toString() const;
|
||||
|
||||
Size &alignDownTo(unsigned int hAlignment, unsigned int vAlignment)
|
||||
{
|
||||
@@ -275,7 +275,7 @@ public:
|
||||
unsigned int height;
|
||||
|
||||
bool isNull() const { return !width && !height; }
|
||||
const std::string toString() const;
|
||||
std::string toString() const;
|
||||
|
||||
Point center() const;
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
|
||||
~Matrix() = default;
|
||||
|
||||
const std::string toString() const
|
||||
std::string toString() const
|
||||
{
|
||||
std::stringstream out;
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ struct V4L2SubdeviceFormat {
|
||||
Size size;
|
||||
std::optional<ColorSpace> colorSpace;
|
||||
|
||||
const std::string toString() const;
|
||||
std::string toString() const;
|
||||
};
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, const V4L2SubdeviceFormat &f);
|
||||
|
||||
@@ -178,7 +178,7 @@ public:
|
||||
std::array<Plane, 3> planes;
|
||||
unsigned int planesCount = 0;
|
||||
|
||||
const std::string toString() const;
|
||||
std::string toString() const;
|
||||
};
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, const V4L2DeviceFormat &f);
|
||||
|
||||
Reference in New Issue
Block a user