summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-10 08:43:01 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-02-11 06:22:28 +0000
commit0f8ec3036f44b02aa03795ede3052a790134a90d (patch)
treea7cbba9eb70fcee3f793c07f8d8db6c092d0e594 /chart2
parenta6f876d45bd4e41a7143594a6cb11b6893a0f620 (diff)
[API CHANGE] add operator==/!= to UNO structs
this is useful now that we are storing UNO structs in std::vector Change-Id: Ic558bcd669bd2b3cdf9eb8393269eb906ac52369 Reviewed-on: https://gerrit.libreoffice.org/22257 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx10
-rw-r--r--chart2/source/inc/CommonConverters.hxx5
-rw-r--r--chart2/source/tools/CommonConverters.cxx8
3 files changed, 0 insertions, 23 deletions
diff --git a/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx
index cedab3995913..e22ce7685466 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx
@@ -44,16 +44,6 @@ using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::beans::Property;
-namespace com { namespace sun { namespace star { namespace awt {
-
-// this operator is not defined by default
-bool operator!=( const awt::Size & rSize1, const awt::Size & rSize2 )
-{
- return (rSize1.Width != rSize2.Width) || (rSize1.Height != rSize2.Height);
-}
-
-} } } }
-
namespace chart
{
namespace wrapper
diff --git a/chart2/source/inc/CommonConverters.hxx b/chart2/source/inc/CommonConverters.hxx
index 7b42b7fad5a0..46288be417b5 100644
--- a/chart2/source/inc/CommonConverters.hxx
+++ b/chart2/source/inc/CommonConverters.hxx
@@ -134,11 +134,6 @@ OOO_DLLPUBLIC_CHARTTOOLS com::sun::star::drawing::Direction3D
operator-( const com::sun::star::drawing::Position3D& rPos1
, const com::sun::star::drawing::Position3D& rPos2);
-/** Position3D == Position3D ?
-*/
-OOO_DLLPUBLIC_CHARTTOOLS
-bool operator==( const com::sun::star::drawing::Position3D& rPos1
- , const com::sun::star::drawing::Position3D& rPos2);
/** awt::Rect --> awt::Point (2D)
*/
diff --git a/chart2/source/tools/CommonConverters.cxx b/chart2/source/tools/CommonConverters.cxx
index 8571f94defad..436c1050ac6c 100644
--- a/chart2/source/tools/CommonConverters.cxx
+++ b/chart2/source/tools/CommonConverters.cxx
@@ -360,14 +360,6 @@ drawing::Direction3D operator-( const drawing::Position3D& rPos1
);
}
-bool operator==( const drawing::Position3D& rPos1
- , const drawing::Position3D& rPos2)
-{
- return rPos1.PositionX == rPos2.PositionX
- && rPos1.PositionY == rPos2.PositionY
- && rPos1.PositionZ == rPos2.PositionZ;
-}
-
awt::Point Position3DToAWTPoint( const drawing::Position3D& rPos )
{
awt::Point aRet;