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

View File

@@ -53,7 +53,7 @@ namespace libcamera {
* \brief Assemble and return a string describing the point
* \return A string describing the point
*/
const std::string Point::toString() const
std::string Point::toString() const
{
std::stringstream ss;
ss << *this;
@@ -133,7 +133,7 @@ std::ostream &operator<<(std::ostream &out, const Point &p)
* \brief Assemble and return a string describing the size
* \return A string describing the size
*/
const std::string Size::toString() const
std::string Size::toString() const
{
std::stringstream ss;
ss << *this;
@@ -676,7 +676,7 @@ std::ostream &operator<<(std::ostream &out, const SizeRange &sr)
* \brief Assemble and return a string describing the rectangle
* \return A string describing the Rectangle
*/
const std::string Rectangle::toString() const
std::string Rectangle::toString() const
{
std::stringstream ss;
ss << *this;