Kaydet (Commit) 8536b96a authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:singlevalfields

Change-Id: I75554209ad247173381ea96a14c8bf532bed13a8
Reviewed-on: https://gerrit.libreoffice.org/58724
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst a6c9228f
chart2/source/model/main/DataPoint.hxx:107 chart2/source/model/main/DataPoint.hxx:108
chart::DataPoint m_bNoParentPropAllowed chart::DataPoint m_bNoParentPropAllowed
0 0
connectivity/source/inc/dbase/DIndexIter.hxx:37 connectivity/source/inc/dbase/DIndexIter.hxx:37
...@@ -13,6 +13,9 @@ include/basic/sbxvar.hxx:70 ...@@ -13,6 +13,9 @@ include/basic/sbxvar.hxx:70
include/editeng/charsetcoloritem.hxx:35 include/editeng/charsetcoloritem.hxx:35
SvxCharSetColorItem eFrom SvxCharSetColorItem eFrom
0 0
include/editeng/swafopt.hxx:58
editeng::SortedAutoCompleteStrings owning_
1
include/filter/msfilter/dffpropset.hxx:33 include/filter/msfilter/dffpropset.hxx:33
DffPropFlags bSet DffPropFlags bSet
0 0
...@@ -22,7 +25,7 @@ include/filter/msfilter/dffpropset.hxx:35 ...@@ -22,7 +25,7 @@ include/filter/msfilter/dffpropset.hxx:35
include/o3tl/vector_pool.hxx:93 include/o3tl/vector_pool.hxx:93
o3tl::detail::struct_from_value::type nextFree o3tl::detail::struct_from_value::type nextFree
-1 -1
include/oox/dump/dumperbase.hxx:1661 include/oox/dump/dumperbase.hxx:1683
oox::dump::RecordObjectBase mbBinaryOnly oox::dump::RecordObjectBase mbBinaryOnly
0 0
include/oox/ole/axcontrol.hxx:427 include/oox/ole/axcontrol.hxx:427
...@@ -37,7 +40,13 @@ include/svtools/svparser.hxx:74 ...@@ -37,7 +40,13 @@ include/svtools/svparser.hxx:74
include/svtools/svparser.hxx:75 include/svtools/svparser.hxx:75
SvParser::TokenStackType bTokenHasValue SvParser::TokenStackType bTokenHasValue
0 0
include/vcl/filter/pdfdocument.hxx:188 include/svx/dialcontrol.hxx:212
svx::SvxDialControl::DialControl_Impl mbNoRot
0
include/svx/svdograf.hxx:106
SdrGrafObj mbInsidePaint
0
include/vcl/filter/pdfdocument.hxx:200
vcl::filter::PDFNameElement m_nLength vcl::filter::PDFNameElement m_nLength
0 0
libreofficekit/source/gtk/lokdocview.cxx:84 libreofficekit/source/gtk/lokdocview.cxx:84
...@@ -55,7 +64,7 @@ pyuno/source/module/pyuno_impl.hxx:312 ...@@ -55,7 +64,7 @@ pyuno/source/module/pyuno_impl.hxx:312
sax/source/tools/fastserializer.hxx:231 sax/source/tools/fastserializer.hxx:231
sax_fastparser::FastSaxSerializer mbXescape sax_fastparser::FastSaxSerializer mbXescape
1 1
sc/inc/compiler.hxx:111 sc/inc/compiler.hxx:112
ScRawToken::(anonymous union)::(anonymous) eInForceArray ScRawToken::(anonymous union)::(anonymous) eInForceArray
0 0
sc/qa/unit/ucalc.hxx:41 sc/qa/unit/ucalc.hxx:41
...@@ -73,10 +82,10 @@ sfx2/source/appl/lnkbase2.cxx:77 ...@@ -73,10 +82,10 @@ sfx2/source/appl/lnkbase2.cxx:77
sfx2/source/appl/lnkbase2.cxx:82 sfx2/source/appl/lnkbase2.cxx:82
sfx2::ImplBaseLinkData::(anonymous) DDEType sfx2::ImplBaseLinkData::(anonymous) DDEType
0 0
sfx2/source/doc/doctemplates.cxx:136 sfx2/source/doc/doctemplates.cxx:137
(anonymous namespace)::WaitWindow_Impl mnTextStyle (anonymous namespace)::WaitWindow_Impl mnTextStyle
12576 12576
sfx2/source/view/ipclient.cxx:81 sfx2/source/view/ipclient.cxx:82
SfxBooleanFlagGuard m_bLifeValue SfxBooleanFlagGuard m_bLifeValue
1 1
soltools/cpp/cpp.h:120 soltools/cpp/cpp.h:120
...@@ -91,24 +100,18 @@ soltools/mkdepend/def.h:132 ...@@ -91,24 +100,18 @@ soltools/mkdepend/def.h:132
stoc/source/inspect/introspection.cxx:1530 stoc/source/inspect/introspection.cxx:1530
(anonymous namespace)::Cache::Data hits (anonymous namespace)::Cache::Data hits
1 1
svtools/source/control/valueimp.hxx:81 svx/source/svdraw/svdpdf.hxx:173
SvtValueSetItem mpData
0
svx/source/svdraw/svdpdf.hxx:168
ImpSdrPdfImport maLineJoin ImpSdrPdfImport maLineJoin
0 0
svx/source/svdraw/svdpdf.hxx:169 svx/source/svdraw/svdpdf.hxx:174
ImpSdrPdfImport maLineCap ImpSdrPdfImport maLineCap
0 0
sw/inc/hints.hxx:199 sw/inc/hints.hxx:199
SwAttrSetChg m_bDelSet SwAttrSetChg m_bDelSet
0 0
sw/inc/pagepreviewlayout.hxx:49 sw/inc/pagepreviewlayout.hxx:46
SwPagePreviewLayout mnYFree SwPagePreviewLayout mnYFree
568 568
sw/inc/swbaslnk.hxx:32
SwBaseLink m_bIgnoreDataChanged
0
sw/source/core/inc/frmtool.hxx:260 sw/source/core/inc/frmtool.hxx:260
SwBorderAttrs m_bBorderDist SwBorderAttrs m_bBorderDist
1 1
...@@ -124,24 +127,18 @@ sw/source/filter/html/htmlcss1.cxx:78 ...@@ -124,24 +127,18 @@ sw/source/filter/html/htmlcss1.cxx:78
sw/source/filter/html/htmlcss1.cxx:79 sw/source/filter/html/htmlcss1.cxx:79
SwCSS1ItemIds nFormatKeep SwCSS1ItemIds nFormatKeep
109 109
sw/source/filter/html/svxcss1.hxx:201 sw/source/filter/html/svxcss1.hxx:202
SvxCSS1Parser nMinFixLineSpace SvxCSS1Parser nMinFixLineSpace
141 141
sw/source/filter/inc/rtf.hxx:30 sw/source/filter/inc/rtf.hxx:30
RTFSurround::(anonymous union)::(anonymous) nJunk RTFSurround::(anonymous union)::(anonymous) nJunk
0 0
sw/source/filter/ww8/ww8par.hxx:655 sw/source/filter/ww8/ww8par.hxx:660
WW8FormulaControl mfUnknown WW8FormulaControl mfUnknown
0 0
sw/source/filter/ww8/ww8par.hxx:664 sw/source/filter/ww8/ww8par.hxx:669
WW8FormulaControl mhpsCheckBox WW8FormulaControl mhpsCheckBox
20 20
sw/source/uibase/inc/envlop.hxx:76
SwEnvDlg pAddresseeSet
0
sw/source/uibase/inc/envlop.hxx:77
SwEnvDlg pSenderSet
0
unotools/source/config/saveopt.cxx:77 unotools/source/config/saveopt.cxx:77
SvtSaveOptions_Impl bROUserAutoSave SvtSaveOptions_Impl bROUserAutoSave
0 0
...@@ -175,51 +172,57 @@ vcl/source/filter/jpeg/transupp.h:131 ...@@ -175,51 +172,57 @@ vcl/source/filter/jpeg/transupp.h:131
vcl/source/font/font.cxx:539 vcl/source/font/font.cxx:539
(anonymous namespace)::WeightSearchEntry weight (anonymous namespace)::WeightSearchEntry weight
5 5
vcl/source/gdi/dibtools.cxx:50 vcl/source/gdi/dibtools.cxx:51
(anonymous namespace)::CIEXYZ aXyzX (anonymous namespace)::CIEXYZ aXyzX
0 0
vcl/source/gdi/dibtools.cxx:51 vcl/source/gdi/dibtools.cxx:52
(anonymous namespace)::CIEXYZ aXyzY (anonymous namespace)::CIEXYZ aXyzY
0 0
vcl/source/gdi/dibtools.cxx:52 vcl/source/gdi/dibtools.cxx:53
(anonymous namespace)::CIEXYZ aXyzZ (anonymous namespace)::CIEXYZ aXyzZ
0 0
vcl/source/gdi/dibtools.cxx:105 vcl/source/gdi/dibtools.cxx:106
(anonymous namespace)::DIBV5Header nV5RedMask (anonymous namespace)::DIBV5Header nV5RedMask
0 0
vcl/source/gdi/dibtools.cxx:106 vcl/source/gdi/dibtools.cxx:107
(anonymous namespace)::DIBV5Header nV5GreenMask (anonymous namespace)::DIBV5Header nV5GreenMask
0 0
vcl/source/gdi/dibtools.cxx:107 vcl/source/gdi/dibtools.cxx:108
(anonymous namespace)::DIBV5Header nV5BlueMask (anonymous namespace)::DIBV5Header nV5BlueMask
0 0
vcl/source/gdi/dibtools.cxx:108 vcl/source/gdi/dibtools.cxx:109
(anonymous namespace)::DIBV5Header nV5AlphaMask (anonymous namespace)::DIBV5Header nV5AlphaMask
0 0
vcl/source/gdi/dibtools.cxx:111 vcl/source/gdi/dibtools.cxx:112
(anonymous namespace)::DIBV5Header nV5GammaRed (anonymous namespace)::DIBV5Header nV5GammaRed
0 0
vcl/source/gdi/dibtools.cxx:112 vcl/source/gdi/dibtools.cxx:113
(anonymous namespace)::DIBV5Header nV5GammaGreen (anonymous namespace)::DIBV5Header nV5GammaGreen
0 0
vcl/source/gdi/dibtools.cxx:113 vcl/source/gdi/dibtools.cxx:114
(anonymous namespace)::DIBV5Header nV5GammaBlue (anonymous namespace)::DIBV5Header nV5GammaBlue
0 0
vcl/source/gdi/dibtools.cxx:115 vcl/source/gdi/dibtools.cxx:116
(anonymous namespace)::DIBV5Header nV5ProfileData (anonymous namespace)::DIBV5Header nV5ProfileData
0 0
vcl/source/gdi/dibtools.cxx:116 vcl/source/gdi/dibtools.cxx:117
(anonymous namespace)::DIBV5Header nV5ProfileSize (anonymous namespace)::DIBV5Header nV5ProfileSize
0 0
vcl/source/gdi/dibtools.cxx:117 vcl/source/gdi/dibtools.cxx:118
(anonymous namespace)::DIBV5Header nV5Reserved (anonymous namespace)::DIBV5Header nV5Reserved
0 0
vcl/source/gdi/pdfwriter_impl.hxx:699 vcl/source/gdi/pdfwriter_impl.hxx:698
vcl::PDFWriterImpl m_nInheritedPageWidth vcl::PDFWriterImpl m_nInheritedPageWidth
595 595
vcl/source/gdi/pdfwriter_impl.hxx:700 vcl/source/gdi/pdfwriter_impl.hxx:699
vcl::PDFWriterImpl m_nInheritedPageHeight vcl::PDFWriterImpl m_nInheritedPageHeight
842 842
writerfilter/source/dmapper/GraphicImport.cxx:223 writerfilter/source/dmapper/GraphicImport.cxx:208
writerfilter::dmapper::GraphicImport_Impl nCurrentBorderLine writerfilter::dmapper::GraphicImport_Impl nCurrentBorderLine
2 2
writerfilter/source/rtftok/rtfdocumentimpl.hxx:620
writerfilter::rtftok::RTFDocumentImpl m_nNestedTRLeft
0
writerfilter/source/rtftok/rtfdocumentimpl.hxx:621
writerfilter::rtftok::RTFDocumentImpl m_nTopLevelTRLeft
0
...@@ -209,7 +209,6 @@ protected: ...@@ -209,7 +209,6 @@ protected:
sal_Int32 mnOldAngle; sal_Int32 mnOldAngle;
long mnCenterX; long mnCenterX;
long mnCenterY; long mnCenterY;
bool mbNoRot;
explicit DialControl_Impl(OutputDevice& rReference); explicit DialControl_Impl(OutputDevice& rReference);
void Init( const Size& rWinSize, const vcl::Font& rWinFont ); void Init( const Size& rWinSize, const vcl::Font& rWinFont );
......
...@@ -102,9 +102,6 @@ private: ...@@ -102,9 +102,6 @@ private:
// Flag for allowing text animation. Default is true. // Flag for allowing text animation. Default is true.
bool mbGrafAnimationAllowed:1; bool mbGrafAnimationAllowed:1;
// #i25616#
bool mbInsidePaint:1;
bool mbIsSignatureLine; bool mbIsSignatureLine;
OUString maSignatureLineId; OUString maSignatureLineId;
OUString maSignatureLineSuggestedSignerName; OUString maSignatureLineSuggestedSignerName;
...@@ -180,9 +177,6 @@ public: ...@@ -180,9 +177,6 @@ public:
virtual OUString TakeObjNameSingul() const override; virtual OUString TakeObjNameSingul() const override;
virtual OUString TakeObjNamePlural() const override; virtual OUString TakeObjNamePlural() const override;
// #i25616#
virtual basegfx::B2DPolyPolygon TakeXorPoly() const override;
virtual SdrGrafObj* CloneSdrObject(SdrModel& rTargetModel) const override; virtual SdrGrafObj* CloneSdrObject(SdrModel& rTargetModel) const override;
SdrGrafObj& operator=(const SdrGrafObj& rObj); SdrGrafObj& operator=(const SdrGrafObj& rObj);
......
...@@ -517,8 +517,7 @@ SvxDialControl::DialControl_Impl::DialControl_Impl(OutputDevice& rReference) : ...@@ -517,8 +517,7 @@ SvxDialControl::DialControl_Impl::DialControl_Impl(OutputDevice& rReference) :
mnInitialAngle( 0 ), mnInitialAngle( 0 ),
mnOldAngle( 0 ), mnOldAngle( 0 ),
mnCenterX( 0 ), mnCenterX( 0 ),
mnCenterY( 0 ), mnCenterY( 0 )
mbNoRot( false )
{ {
} }
...@@ -690,26 +689,19 @@ void SvxDialControl::Init( const Size& rWinSize ) ...@@ -690,26 +689,19 @@ void SvxDialControl::Init( const Size& rWinSize )
void SvxDialControl::InvalidateControl() void SvxDialControl::InvalidateControl()
{ {
mpImpl->mxBmpBuffered->CopyBackground( IsEnabled() ? *mpImpl->mxBmpEnabled : *mpImpl->mxBmpDisabled ); mpImpl->mxBmpBuffered->CopyBackground( IsEnabled() ? *mpImpl->mxBmpEnabled : *mpImpl->mxBmpDisabled );
if( !mpImpl->mbNoRot ) mpImpl->mxBmpBuffered->DrawElements( OUString(), mpImpl->mnAngle );
mpImpl->mxBmpBuffered->DrawElements( OUString(), mpImpl->mnAngle );
Invalidate(); Invalidate();
} }
void SvxDialControl::SetRotation( sal_Int32 nAngle ) void SvxDialControl::SetRotation( sal_Int32 nAngle )
{ {
bool bOldSel = mpImpl->mbNoRot;
mpImpl->mbNoRot = false;
while( nAngle < 0 ) while( nAngle < 0 )
nAngle += 36000; nAngle += 36000;
if( !bOldSel || (mpImpl->mnAngle != nAngle) ) mpImpl->mnAngle = nAngle;
{ InvalidateControl();
mpImpl->mnAngle = nAngle; if( mpImpl->mpLinkField )
InvalidateControl(); mpImpl->mpLinkField->set_value(GetRotation() / mpImpl->mnLinkedFieldValueMultiplyer);
if( mpImpl->mpLinkField )
mpImpl->mpLinkField->set_value(GetRotation() / mpImpl->mnLinkedFieldValueMultiplyer);
}
} }
void SvxDialControl::HandleMouseEvent( const Point& rPos, bool bInitial ) void SvxDialControl::HandleMouseEvent( const Point& rPos, bool bInitial )
......
...@@ -346,7 +346,6 @@ SdrGrafObj::SdrGrafObj(SdrModel& rSdrModel) ...@@ -346,7 +346,6 @@ SdrGrafObj::SdrGrafObj(SdrModel& rSdrModel)
// #i25616# // #i25616#
mbLineIsOutsideGeometry = true; mbLineIsOutsideGeometry = true;
mbInsidePaint = false;
// #i25616# // #i25616#
mbSupportTextIndentingOnLineWidthChange = false; mbSupportTextIndentingOnLineWidthChange = false;
...@@ -373,7 +372,6 @@ SdrGrafObj::SdrGrafObj( ...@@ -373,7 +372,6 @@ SdrGrafObj::SdrGrafObj(
// #i25616# // #i25616#
mbLineIsOutsideGeometry = true; mbLineIsOutsideGeometry = true;
mbInsidePaint = false;
// #i25616# // #i25616#
mbSupportTextIndentingOnLineWidthChange = false; mbSupportTextIndentingOnLineWidthChange = false;
...@@ -399,7 +397,6 @@ SdrGrafObj::SdrGrafObj( ...@@ -399,7 +397,6 @@ SdrGrafObj::SdrGrafObj(
// #i25616# // #i25616#
mbLineIsOutsideGeometry = true; mbLineIsOutsideGeometry = true;
mbInsidePaint = false;
// #i25616# // #i25616#
mbSupportTextIndentingOnLineWidthChange = false; mbSupportTextIndentingOnLineWidthChange = false;
...@@ -909,32 +906,6 @@ SdrGrafObj& SdrGrafObj::operator=( const SdrGrafObj& rObj ) ...@@ -909,32 +906,6 @@ SdrGrafObj& SdrGrafObj::operator=( const SdrGrafObj& rObj )
return *this; return *this;
} }
basegfx::B2DPolyPolygon SdrGrafObj::TakeXorPoly() const
{
if(mbInsidePaint)
{
basegfx::B2DPolyPolygon aRetval;
// take grown rectangle
const sal_Int32 nHalfLineWidth(ImpGetLineWdt() / 2);
const tools::Rectangle aGrownRect(
maRect.Left() - nHalfLineWidth,
maRect.Top() - nHalfLineWidth,
maRect.Right() + nHalfLineWidth,
maRect.Bottom() + nHalfLineWidth);
XPolygon aXPoly(ImpCalcXPoly(aGrownRect, GetEckenradius()));
aRetval.append(aXPoly.getB2DPolygon());
return aRetval;
}
else
{
// call parent
return SdrRectObj::TakeXorPoly();
}
}
sal_uInt32 SdrGrafObj::GetHdlCount() const sal_uInt32 SdrGrafObj::GetHdlCount() const
{ {
return 8L; return 8L;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment