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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user