summaryrefslogtreecommitdiff
path: root/reportdesign/source
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 /reportdesign/source
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 'reportdesign/source')
-rw-r--r--reportdesign/source/core/api/ReportControlModel.cxx21
-rw-r--r--reportdesign/source/core/inc/ReportControlModel.hxx7
2 files changed, 0 insertions, 28 deletions
diff --git a/reportdesign/source/core/api/ReportControlModel.cxx b/reportdesign/source/core/api/ReportControlModel.cxx
index 9c1e2e168a9e..3f9d20307fc3 100644
--- a/reportdesign/source/core/api/ReportControlModel.cxx
+++ b/reportdesign/source/core/api/ReportControlModel.cxx
@@ -24,27 +24,6 @@ namespace reportdesign
using namespace com::sun::star;
using namespace comphelper;
-bool operator==( const css::awt::FontDescriptor& _lhs, const css::awt::FontDescriptor& _rhs )
-{
- return ( _lhs.Name == _rhs.Name )
- && ( _lhs.Height == _rhs.Height )
- && ( _lhs.Width == _rhs.Width )
- && ( _lhs.StyleName == _rhs.StyleName )
- && ( _lhs.Family == _rhs.Family )
- && ( _lhs.CharSet == _rhs.CharSet )
- && ( _lhs.Pitch == _rhs.Pitch )
- && ( _lhs.CharacterWidth == _rhs.CharacterWidth )
- && ( _lhs.Weight == _rhs.Weight )
- && ( _lhs.Slant == _rhs.Slant )
- && ( _lhs.Underline == _rhs.Underline )
- && ( _lhs.Strikeout == _rhs.Strikeout )
- && ( _lhs.Orientation == _rhs.Orientation )
- && ( _lhs.Kerning == _rhs.Kerning )
- && ( _lhs.WordLineMode == _rhs.WordLineMode )
- && ( _lhs.Type == _rhs.Type );
-}
-
-
// XContainer
void OReportControlModel::addContainerListener( const uno::Reference< container::XContainerListener >& xListener ) throw (uno::RuntimeException)
{
diff --git a/reportdesign/source/core/inc/ReportControlModel.hxx b/reportdesign/source/core/inc/ReportControlModel.hxx
index 48b457041efb..dc855adf8e0f 100644
--- a/reportdesign/source/core/inc/ReportControlModel.hxx
+++ b/reportdesign/source/core/inc/ReportControlModel.hxx
@@ -33,13 +33,6 @@
namespace reportdesign
{
- bool operator==( const css::awt::FontDescriptor& _lhs, const css::awt::FontDescriptor& _rhs );
-
- inline bool operator!=( const css::awt::FontDescriptor& _lhs, const css::awt::FontDescriptor& _rhs )
- {
- return !( _lhs == _rhs );
- }
-
struct OFormatProperties
{
::sal_Int16 nAlign;