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:
Barnabás Pőcze
2025-02-21 15:12:08 +01:00
parent 3b72e7d306
commit 14882b8314
12 changed files with 20 additions and 20 deletions
+3 -3
View File
@@ -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;