tdf#157664 Remove != operator from RGBColor class

Both the definition and implementation of the != operator
have been removed from the RGBColor class because C++20
automatically generates the != operator from the == operator.

Change-Id: Ia84fa254d1d11d127f55b79f213eb64789269c7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206183
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
Jason Whitmore
2026-06-29 14:27:35 +02:00
committed by Ilmari Lauhakangas
parent 855da692bc
commit cb080d12c1
2 changed files with 0 additions and 6 deletions
-5
View File
@@ -311,11 +311,6 @@ namespace slideshow::internal
rLHS.getBlue() == rRHS.getBlue() );
}
bool operator!=( const RGBColor& rLHS, const RGBColor& rRHS )
{
return !( rLHS == rRHS );
}
RGBColor operator+( const RGBColor& rLHS, const RGBColor& rRHS )
{
return RGBColor( rLHS.getRed() + rRHS.getRed(),
-1
View File
@@ -74,7 +74,6 @@ namespace slideshow::internal
};
bool operator==( const RGBColor& rLHS, const RGBColor& rRHS );
bool operator!=( const RGBColor& rLHS, const RGBColor& rRHS );
RGBColor operator+( const RGBColor& rLHS, const RGBColor& rRHS );
RGBColor operator*( const RGBColor& rLHS, const RGBColor& rRHS );
RGBColor operator*( double nFactor, const RGBColor& rRHS );