summaryrefslogtreecommitdiff
path: root/include/editeng/tstpitem.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-28 13:40:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-29 08:53:20 +0200
commit2149bbfd2798cb5ed065ea25387616261a840634 (patch)
treeee7365070b6c93ece032cecd0d499dda01400073 /include/editeng/tstpitem.hxx
parent8a8864aeb710e4d17852dc9c0e02b03804a8bf3c (diff)
rename SvxTabStop::IsEqual to operator==
Change-Id: I98f8db6e80d6a5dc30826ec755deb9432f809e92 Reviewed-on: https://gerrit.libreoffice.org/42907 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng/tstpitem.hxx')
-rw-r--r--include/editeng/tstpitem.hxx22
1 files changed, 12 insertions, 10 deletions
diff --git a/include/editeng/tstpitem.hxx b/include/editeng/tstpitem.hxx
index c5ba30035058..34c65604bc8c 100644
--- a/include/editeng/tstpitem.hxx
+++ b/include/editeng/tstpitem.hxx
@@ -35,10 +35,10 @@
class EDITENG_DLLPUBLIC SvxTabStop
{
private:
- sal_Int32 nTabPos;
-
+ sal_Int32 nTabPos;
SvxTabAdjust eAdjustment;
- mutable sal_Unicode m_cDecimal;
+ mutable sal_Unicode
+ m_cDecimal;
sal_Unicode cFill;
void fillDecimal() const;
@@ -50,11 +50,11 @@ public:
const sal_Unicode cDec = cDfltDecimalChar,
const sal_Unicode cFil = cDfltFillChar );
- sal_Int32& GetTabPos() { return nTabPos; }
- sal_Int32 GetTabPos() const { return nTabPos; }
+ sal_Int32& GetTabPos() { return nTabPos; }
+ sal_Int32 GetTabPos() const { return nTabPos; }
- SvxTabAdjust& GetAdjustment() { return eAdjustment; }
- SvxTabAdjust GetAdjustment() const { return eAdjustment; }
+ SvxTabAdjust& GetAdjustment() { return eAdjustment; }
+ SvxTabAdjust GetAdjustment() const { return eAdjustment; }
sal_Unicode& GetDecimal() { fillDecimal(); return m_cDecimal; }
sal_Unicode GetDecimal() const { fillDecimal(); return m_cDecimal; }
@@ -62,15 +62,17 @@ public:
sal_Unicode& GetFill() { return cFill; }
sal_Unicode GetFill() const { return cFill; }
- // the "old" operator==()
- bool IsEqual( const SvxTabStop& rTS ) const
+ bool operator==( const SvxTabStop& rTS ) const
{
return ( nTabPos == rTS.nTabPos &&
eAdjustment == rTS.eAdjustment &&
m_cDecimal == rTS.m_cDecimal &&
cFill == rTS.cFill );
}
-
+ bool operator!=( const SvxTabStop& rTS ) const
+ {
+ return !operator==(rTS);
+ }
// For the SortedArray:
bool operator <( const SvxTabStop& rTS ) const
{ return nTabPos < rTS.nTabPos; }