diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-14 15:46:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-14 15:46:25 +0100 |
commit | d3b9b4e41e31ce276d2d7354602a586b300adee9 (patch) | |
tree | 4c8a9ed761ef5ea950eaf5146982970c48ad8a9f /vcl | |
parent | 62b50cb69cbf2cb6b99da3b6ff78435af4927b77 (diff) |
Remove excess non-const getters
Change-Id: Ia66394560cda5c4d517f2a9fd047bed30c2c8975
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/edit/textdat2.hxx | 4 | ||||
-rw-r--r-- | vcl/source/edit/textdata.cxx | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/vcl/source/edit/textdat2.hxx b/vcl/source/edit/textdat2.hxx index 0607e1be4878..90b5f85130f3 100644 --- a/vcl/source/edit/textdat2.hxx +++ b/vcl/source/edit/textdat2.hxx @@ -132,19 +132,15 @@ public: void SetStart( sal_Int32 n ) { mnStart = n; } sal_Int32 GetStart() const { return mnStart; } - sal_Int32& GetStart() { return mnStart; } void SetEnd( sal_Int32 n ) { mnEnd = n; } sal_Int32 GetEnd() const { return mnEnd; } - sal_Int32& GetEnd() { return mnEnd; } void SetStartPortion( sal_uInt16 n ) { mnStartPortion = n; } sal_uInt16 GetStartPortion() const { return mnStartPortion; } - sal_uInt16& GetStartPortion() { return mnStartPortion; } void SetEndPortion( sal_uInt16 n ) { mnEndPortion = n; } sal_uInt16 GetEndPortion() const { return mnEndPortion; } - sal_uInt16& GetEndPortion() { return mnEndPortion; } sal_Int32 GetLen() const { return mnEnd - mnStart; } diff --git a/vcl/source/edit/textdata.cxx b/vcl/source/edit/textdata.cxx index dd8fb43254e4..010b5854be8c 100644 --- a/vcl/source/edit/textdata.cxx +++ b/vcl/source/edit/textdata.cxx @@ -252,11 +252,11 @@ void TEParaPortion::CorrectValuesBehindLastFormattedLine( sal_uInt16 nLastFormat { TextLine& rLine = maLines[ nL ]; - rLine.GetStartPortion() = rLine.GetStartPortion() + nPDiff; - rLine.GetEndPortion() = rLine.GetEndPortion() + nPDiff; + rLine.SetStartPortion(rLine.GetStartPortion() + nPDiff); + rLine.SetEndPortion(rLine.GetEndPortion() + nPDiff); - rLine.GetStart() = rLine.GetStart() + nTDiff; - rLine.GetEnd() = rLine.GetEnd() + nTDiff; + rLine.SetStart(rLine.GetStart() + nTDiff); + rLine.SetEnd(rLine.GetEnd() + nTDiff); rLine.SetValid(); } |