summaryrefslogtreecommitdiff
path: root/comphelper
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 /comphelper
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 'comphelper')
-rw-r--r--comphelper/source/misc/types.cxx21
1 files changed, 0 insertions, 21 deletions
diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx
index a6bbeffaa51e..e70e19e1419b 100644
--- a/comphelper/source/misc/types.cxx
+++ b/comphelper/source/misc/types.cxx
@@ -131,27 +131,6 @@ bool isAssignableFrom(const Type& _rAssignable, const Type& _rFrom)
return typelib_typedescription_isAssignableFrom(pAssignable, pFrom);
}
-bool operator ==(const FontDescriptor& _rLeft, const FontDescriptor& _rRight)
-{
- return ( _rLeft.Name.equals( _rRight.Name ) ) &&
- ( _rLeft.Height == _rRight.Height ) &&
- ( _rLeft.Width == _rRight.Width ) &&
- ( _rLeft.StyleName.equals( _rRight.StyleName ) ) &&
- ( _rLeft.Family == _rRight.Family ) &&
- ( _rLeft.CharSet == _rRight.CharSet ) &&
- ( _rLeft.Pitch == _rRight.Pitch ) &&
- ( _rLeft.CharacterWidth == _rRight.CharacterWidth ) &&
- ( _rLeft.Weight == _rRight.Weight ) &&
- ( _rLeft.Slant == _rRight.Slant ) &&
- ( _rLeft.Underline == _rRight.Underline ) &&
- ( _rLeft.Strikeout == _rRight.Strikeout ) &&
- ( _rLeft.Orientation == _rRight.Orientation ) &&
- ( _rLeft.Kerning == _rRight.Kerning ) &&
- ( _rLeft.WordLineMode == _rRight.WordLineMode ) &&
- ( _rLeft.Type == _rRight.Type ) ;
-}
-
-
Type getSequenceElementType(const Type& _rSequenceType)
{
OSL_ENSURE(_rSequenceType.getTypeClass() == TypeClass_SEQUENCE,