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:
committed by
Ilmari Lauhakangas
parent
855da692bc
commit
cb080d12c1
@@ -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(),
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user