diff options
Diffstat (limited to 'vcl/source/edit')
-rw-r--r-- | vcl/source/edit/textdat2.hxx | 2 | ||||
-rw-r--r-- | vcl/source/edit/texteng.cxx | 4 | ||||
-rw-r--r-- | vcl/source/edit/textview.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/edit/textdat2.hxx b/vcl/source/edit/textdat2.hxx index 81785cf35fce..c1cdded84148 100644 --- a/vcl/source/edit/textdat2.hxx +++ b/vcl/source/edit/textdat2.hxx @@ -154,7 +154,7 @@ public: void SetInvalid() { mbInvalid = true; } void SetValid() { mbInvalid = false; } - bool IsEmpty() const { return (mnEnd > mnStart) ? false : true; } + bool IsEmpty() const { return mnEnd <= mnStart; } short GetStartX() const { return mnStartX; } void SetStartX( short n ) { mnStartX = n; } diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index bac8fdbd48d0..f4a11a2d0ec3 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -2520,7 +2520,7 @@ bool TextEngine::Read( SvStream& rInput, const TextSelection* pSel ) SetUpdateMode( bUpdate ); FormatAndUpdate( GetActiveView() ); - return rInput.GetError() ? false : true; + return rInput.GetError() == 0; } bool TextEngine::Write( SvStream& rOutput, const TextSelection* pSel, bool bHTML ) @@ -2608,7 +2608,7 @@ bool TextEngine::Write( SvStream& rOutput, const TextSelection* pSel, bool bHTML rOutput.WriteLine( "</HTML>" ); } - return rOutput.GetError() ? false : true; + return rOutput.GetError() == 0; } void TextEngine::RemoveAttribs( sal_uLong nPara, bool bIdleFormatAndUpdate ) diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx index cafbbf52f9c4..768125bf2a35 100644 --- a/vcl/source/edit/textview.cxx +++ b/vcl/source/edit/textview.cxx @@ -1841,7 +1841,7 @@ bool TextView::SetCursorAtPoint( const Point& rPosPixel ) ShowSelection( aTmpNewSel ); } - bool bForceCursor = mpImpl->mpDDInfo ? false : true; // && !mbInSelection + bool bForceCursor = mpImpl->mpDDInfo == nullptr; // && !mbInSelection ImpShowCursor( mpImpl->mbAutoScroll, bForceCursor, false ); return true; } |