From cb080d12c19e20be1da8182e641ea81b505c5b1e Mon Sep 17 00:00:00 2001 From: Jason Whitmore Date: Wed, 3 Jun 2026 17:45:29 -0700 Subject: [PATCH] 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 --- slideshow/source/engine/color.cxx | 5 ----- slideshow/source/inc/rgbcolor.hxx | 1 - 2 files changed, 6 deletions(-) diff --git a/slideshow/source/engine/color.cxx b/slideshow/source/engine/color.cxx index 1109d4e68b2b..88f75629cdbd 100644 --- a/slideshow/source/engine/color.cxx +++ b/slideshow/source/engine/color.cxx @@ -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(), diff --git a/slideshow/source/inc/rgbcolor.hxx b/slideshow/source/inc/rgbcolor.hxx index b5f3f8e610fc..ebb831f4d14d 100644 --- a/slideshow/source/inc/rgbcolor.hxx +++ b/slideshow/source/inc/rgbcolor.hxx @@ -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 );