diff options
author | Noel <noelgrandin@gmail.com> | 2020-12-14 13:32:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-14 14:33:28 +0100 |
commit | d98cf29aa4e5ce14f0c96a18be563f5ce36879df (patch) | |
tree | 15bc8aa5d89ebcb556ebc6172872ce1c89e4264c /sc | |
parent | fdeff6cfc022f1a140f4366121c5669ba5c59113 (diff) |
loplugin:singlevalfields
Change-Id: I31107d4e3b3bd175187a8c29a094a4c6acf2a87c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107686
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/hints.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/hints.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/view/prevwsh2.cxx | 9 |
3 files changed, 4 insertions, 10 deletions
diff --git a/sc/inc/hints.hxx b/sc/inc/hints.hxx index 88fff30b4b2f..285b0266ae86 100644 --- a/sc/inc/hints.hxx +++ b/sc/inc/hints.hxx @@ -29,7 +29,6 @@ class SC_DLLPUBLIC ScPaintHint final : public SfxHint { ScRange aRange; PaintPartFlags nParts; - bool bPrint; // flag indicating whether print/preview if affected public: ScPaintHint() = delete; @@ -43,7 +42,6 @@ public: SCROW GetEndRow() const { return aRange.aEnd.Row(); } SCTAB GetEndTab() const { return aRange.aEnd.Tab(); } PaintPartFlags GetParts() const { return nParts; } - bool GetPrintFlag() const { return bPrint; } }; class ScUpdateRefHint final : public SfxHint diff --git a/sc/source/core/tool/hints.cxx b/sc/source/core/tool/hints.cxx index 93fc2cd2eaf1..e2f47824e330 100644 --- a/sc/source/core/tool/hints.cxx +++ b/sc/source/core/tool/hints.cxx @@ -23,8 +23,7 @@ ScPaintHint::ScPaintHint( const ScRange& rRng, PaintPartFlags nPaint ) : aRange( rRng ), - nParts( nPaint ), - bPrint( true ) + nParts( nPaint ) { } diff --git a/sc/source/ui/view/prevwsh2.cxx b/sc/source/ui/view/prevwsh2.cxx index 7f736ed2640b..bb15ac24ad33 100644 --- a/sc/source/ui/view/prevwsh2.cxx +++ b/sc/source/ui/view/prevwsh2.cxx @@ -38,12 +38,9 @@ void ScPreviewShell::Notify( SfxBroadcaster&, const SfxHint& rHint ) } else if (const ScPaintHint* pPaintHint = dynamic_cast<const ScPaintHint*>(&rHint)) { - if ( pPaintHint->GetPrintFlag() ) - { - PaintPartFlags nParts = pPaintHint->GetParts(); - if (nParts & ( PaintPartFlags::Grid | PaintPartFlags::Left | PaintPartFlags::Top | PaintPartFlags::Size )) - bDataChanged = true; - } + PaintPartFlags nParts = pPaintHint->GetParts(); + if (nParts & ( PaintPartFlags::Grid | PaintPartFlags::Left | PaintPartFlags::Top | PaintPartFlags::Size )) + bDataChanged = true; } else { |