diff options
Diffstat (limited to 'sw/source/core/view/vprint.cxx')
-rw-r--r-- | sw/source/core/view/vprint.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx index 5dbf21b716d9..2c93482ebfb5 100644 --- a/sw/source/core/view/vprint.cxx +++ b/sw/source/core/view/vprint.cxx @@ -82,8 +82,8 @@ public: void SwPaintQueue::Add( SwViewShell *pNew, const SwRect &rNew ) { - SwQueuedPaint *pPt; - if (nullptr != (pPt = s_pPaintQueue)) + SwQueuedPaint *pPt = s_pPaintQueue; + if (nullptr != pPt) { while ( pPt->pSh != pNew && pPt->pNext ) pPt = pPt->pNext; @@ -132,8 +132,8 @@ void SwPaintQueue::Repaint() void SwPaintQueue::Remove( SwViewShell const *pSh ) { - SwQueuedPaint *pPt; - if (nullptr != (pPt = s_pPaintQueue)) + SwQueuedPaint *pPt = s_pPaintQueue; + if (nullptr != pPt) { SwQueuedPaint *pPrev = nullptr; while ( pPt && pPt->pSh != pSh ) |