diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-12-24 22:34:40 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-12-30 14:16:43 +0100 |
commit | 72fde57386eb7b53f4b1a0954a1595e36cf17e5f (patch) | |
tree | 2322902c6976c0e056d12019366444b5b9fcae56 /editeng/source | |
parent | 7de4661827c5bed7beaf2c286242e48cfe4154e8 (diff) |
editeng: EditLine test and refactor constructors, operators
Change-Id: Ia60ce07073725bf66bf299edaf7b3cd24cfe59c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161358
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 0d6ce0f315c4..313648d24277 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -890,42 +890,6 @@ void ConvertAndPutItems( SfxItemSet& rDest, const SfxItemSet& rSource, const Map } } -EditLine::EditLine() : - nTxtWidth(0), - nStartPosX(0), - nStart(0), - nEnd(0), - nStartPortion(0), // to be able to tell the difference between a line - // without Portions from one with the Portion number 0 - nEndPortion(0), - nHeight(0), - nTxtHeight(0), - nMaxAscent(0), - bHangingPunctuation(false), - bInvalid(true) -{ -} - -EditLine::EditLine( const EditLine& r ) : - nTxtWidth(0), - nStartPosX(0), - nStart(r.nStart), - nEnd(r.nEnd), - nStartPortion(r.nStartPortion), - nEndPortion(r.nEndPortion), - nHeight(0), - nTxtHeight(0), - nMaxAscent(0), - bHangingPunctuation(r.bHangingPunctuation), - bInvalid(true) -{ -} - -EditLine::~EditLine() -{ -} - - EditLine* EditLine::Clone() const { EditLine* pL = new EditLine; @@ -943,33 +907,6 @@ EditLine* EditLine::Clone() const return pL; } -bool operator == ( const EditLine& r1, const EditLine& r2 ) -{ - if ( r1.nStart != r2.nStart ) - return false; - - if ( r1.nEnd != r2.nEnd ) - return false; - - if ( r1.nStartPortion != r2.nStartPortion ) - return false; - - if ( r1.nEndPortion != r2.nEndPortion ) - return false; - - return true; -} - -EditLine& EditLine::operator = ( const EditLine& r ) -{ - nEnd = r.nEnd; - nStart = r.nStart; - nEndPortion = r.nEndPortion; - nStartPortion = r.nStartPortion; - return *this; -} - - void EditLine::SetHeight( sal_uInt16 nH, sal_uInt16 nTxtH ) { nHeight = nH; |