tdf#157664 Drop redundant operator != in basegfx module
As part of the efforts in #157664 to remove redundant definitions of operator!=, to upgrade the codebase to C++20, this commit removes the remaining definitions in the basegfx module. Change-Id: I19f2b9ddf42185435313445c8395a851030e2149 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165199 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
This commit is contained in:
committed by
Mike Kaganski
parent
87d00a8364
commit
64a55911ea
@@ -351,16 +351,6 @@ namespace basegfx
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool B2DCubicBezier::operator!=(const B2DCubicBezier& rBezier) const
|
|
||||||
{
|
|
||||||
return (
|
|
||||||
maStartPoint != rBezier.maStartPoint
|
|
||||||
|| maEndPoint != rBezier.maEndPoint
|
|
||||||
|| maControlPointA != rBezier.maControlPointA
|
|
||||||
|| maControlPointB != rBezier.maControlPointB
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool B2DCubicBezier::equal(const B2DCubicBezier& rBezier) const
|
bool B2DCubicBezier::equal(const B2DCubicBezier& rBezier) const
|
||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
|
@@ -182,11 +182,6 @@ namespace basegfx
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool B2DHomMatrix::operator!=(const B2DHomMatrix& rMat) const
|
|
||||||
{
|
|
||||||
return !(*this == rMat);
|
|
||||||
}
|
|
||||||
|
|
||||||
void B2DHomMatrix::rotate(double fRadiant)
|
void B2DHomMatrix::rotate(double fRadiant)
|
||||||
{
|
{
|
||||||
if(fTools::equalZero(fRadiant))
|
if(fTools::equalZero(fRadiant))
|
||||||
|
@@ -92,11 +92,6 @@ namespace basegfx
|
|||||||
return (maStart.equal(rComp.maStart) && maEnd.equal(rComp.maEnd));
|
return (maStart.equal(rComp.maStart) && maEnd.equal(rComp.maEnd));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=(const EdgeEntry& rComp) const
|
|
||||||
{
|
|
||||||
return !(*this == rComp);
|
|
||||||
}
|
|
||||||
|
|
||||||
const B2DPoint& getStart() const { return maStart; }
|
const B2DPoint& getStart() const { return maStart; }
|
||||||
const B2DPoint& getEnd() const { return maEnd; }
|
const B2DPoint& getEnd() const { return maEnd; }
|
||||||
|
|
||||||
|
@@ -241,11 +241,6 @@ public:
|
|||||||
return ((*mpPolyPolygon) == (*rPolyPolygon.mpPolyPolygon));
|
return ((*mpPolyPolygon) == (*rPolyPolygon.mpPolyPolygon));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool B2DPolyPolygon::operator!=(const B2DPolyPolygon& rPolyPolygon) const
|
|
||||||
{
|
|
||||||
return !((*this) == rPolyPolygon);
|
|
||||||
}
|
|
||||||
|
|
||||||
sal_uInt32 B2DPolyPolygon::count() const
|
sal_uInt32 B2DPolyPolygon::count() const
|
||||||
{
|
{
|
||||||
return mpPolyPolygon->count();
|
return mpPolyPolygon->count();
|
||||||
|
@@ -223,11 +223,6 @@ namespace basegfx
|
|||||||
return ((*mpPolyPolygon) == (*rPolyPolygon.mpPolyPolygon));
|
return ((*mpPolyPolygon) == (*rPolyPolygon.mpPolyPolygon));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool B3DPolyPolygon::operator!=(const B3DPolyPolygon& rPolyPolygon) const
|
|
||||||
{
|
|
||||||
return !(*this == rPolyPolygon);
|
|
||||||
}
|
|
||||||
|
|
||||||
sal_uInt32 B3DPolyPolygon::count() const
|
sal_uInt32 B3DPolyPolygon::count() const
|
||||||
{
|
{
|
||||||
return mpPolyPolygon->count();
|
return mpPolyPolygon->count();
|
||||||
|
@@ -109,11 +109,6 @@ namespace basegfx
|
|||||||
return ((*mpImpl) == (*rRange.mpImpl));
|
return ((*mpImpl) == (*rRange.mpImpl));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool B2DPolyRange::operator!=(const B2DPolyRange& rRange) const
|
|
||||||
{
|
|
||||||
return !(*this == rRange);
|
|
||||||
}
|
|
||||||
|
|
||||||
sal_uInt32 B2DPolyRange::count() const
|
sal_uInt32 B2DPolyRange::count() const
|
||||||
{
|
{
|
||||||
return mpImpl->count();
|
return mpImpl->count();
|
||||||
|
@@ -415,11 +415,6 @@ namespace basegfx::utils
|
|||||||
return ((*mpImpl) == (*rRHS.mpImpl));
|
return ((*mpImpl) == (*rRHS.mpImpl));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool B2DClipState::operator!=(const B2DClipState& rRHS) const
|
|
||||||
{
|
|
||||||
return !(*this == rRHS);
|
|
||||||
}
|
|
||||||
|
|
||||||
void B2DClipState::unionRange(const B2DRange& rRange)
|
void B2DClipState::unionRange(const B2DRange& rRange)
|
||||||
{
|
{
|
||||||
mpImpl->unionRange(rRange);
|
mpImpl->unionRange(rRange);
|
||||||
|
@@ -48,7 +48,6 @@ namespace basegfx
|
|||||||
|
|
||||||
// compare operators
|
// compare operators
|
||||||
bool operator==(const B2DCubicBezier& rBezier) const;
|
bool operator==(const B2DCubicBezier& rBezier) const;
|
||||||
bool operator!=(const B2DCubicBezier& rBezier) const;
|
|
||||||
bool equal(const B2DCubicBezier& rBezier) const;
|
bool equal(const B2DCubicBezier& rBezier) const;
|
||||||
|
|
||||||
// test if vectors are used
|
// test if vectors are used
|
||||||
|
@@ -117,7 +117,6 @@ namespace basegfx
|
|||||||
void shearY(double fSy);
|
void shearY(double fSy);
|
||||||
|
|
||||||
bool operator==(const B2DHomMatrix& rMat) const;
|
bool operator==(const B2DHomMatrix& rMat) const;
|
||||||
bool operator!=(const B2DHomMatrix& rMat) const;
|
|
||||||
|
|
||||||
// matrix multiplication from the left to the local
|
// matrix multiplication from the left to the local
|
||||||
B2DHomMatrix& operator*=(const B2DHomMatrix& rMat);
|
B2DHomMatrix& operator*=(const B2DHomMatrix& rMat);
|
||||||
|
@@ -54,7 +54,6 @@ namespace basegfx
|
|||||||
|
|
||||||
// compare operators
|
// compare operators
|
||||||
bool operator==(const B2DPolyPolygon& rPolyPolygon) const;
|
bool operator==(const B2DPolyPolygon& rPolyPolygon) const;
|
||||||
bool operator!=(const B2DPolyPolygon& rPolyPolygon) const;
|
|
||||||
|
|
||||||
// polygon interface
|
// polygon interface
|
||||||
sal_uInt32 count() const;
|
sal_uInt32 count() const;
|
||||||
|
@@ -55,7 +55,6 @@ namespace basegfx
|
|||||||
|
|
||||||
// compare operators
|
// compare operators
|
||||||
bool operator==(const B3DPolyPolygon& rPolyPolygon) const;
|
bool operator==(const B3DPolyPolygon& rPolyPolygon) const;
|
||||||
bool operator!=(const B3DPolyPolygon& rPolyPolygon) const;
|
|
||||||
|
|
||||||
// polygon interface
|
// polygon interface
|
||||||
sal_uInt32 count() const;
|
sal_uInt32 count() const;
|
||||||
|
@@ -61,7 +61,6 @@ namespace basegfx
|
|||||||
B2DPolyRange& operator=( const B2DPolyRange& );
|
B2DPolyRange& operator=( const B2DPolyRange& );
|
||||||
|
|
||||||
bool operator==(const B2DPolyRange&) const;
|
bool operator==(const B2DPolyRange&) const;
|
||||||
bool operator!=(const B2DPolyRange&) const;
|
|
||||||
|
|
||||||
/// Number of included ranges
|
/// Number of included ranges
|
||||||
sal_uInt32 count() const;
|
sal_uInt32 count() const;
|
||||||
|
@@ -69,7 +69,6 @@ namespace basegfx::utils
|
|||||||
bool isCleared() const;
|
bool isCleared() const;
|
||||||
|
|
||||||
bool operator==(const B2DClipState&) const;
|
bool operator==(const B2DClipState&) const;
|
||||||
bool operator!=(const B2DClipState&) const;
|
|
||||||
|
|
||||||
void unionRange(const B2DRange& );
|
void unionRange(const B2DRange& );
|
||||||
void unionPolyPolygon(const B2DPolyPolygon& );
|
void unionPolyPolygon(const B2DPolyPolygon& );
|
||||||
|
Reference in New Issue
Block a user