Kaydet (Commit) 48ca5005 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:singlevalfields

Change-Id: I1ea854982e042bccc7e5f531802cf1016c81b488
Reviewed-on: https://gerrit.libreoffice.org/55615Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 51c879d8
basic/source/inc/token.hxx:110
SbiTokenizer bKeywords
1
chart2/source/model/main/DataPoint.hxx:107 chart2/source/model/main/DataPoint.hxx:107
chart::DataPoint m_bNoParentPropAllowed chart::DataPoint m_bNoParentPropAllowed
0 0
...@@ -10,6 +7,9 @@ chart2/source/view/inc/GL3DRenderer.hxx:161 ...@@ -10,6 +7,9 @@ chart2/source/view/inc/GL3DRenderer.hxx:161
connectivity/source/inc/dbase/DIndexIter.hxx:37 connectivity/source/inc/dbase/DIndexIter.hxx:37
connectivity::dbase::OIndexIterator m_pOperand connectivity::dbase::OIndexIterator m_pOperand
0 0
desktop/source/app/cmdlineargs.hxx:137
desktop::CommandLineArgs m_quickstart
0
include/basic/sbxvar.hxx:70 include/basic/sbxvar.hxx:70
SbxValues::(anonymous) pData SbxValues::(anonymous) pData
0 0
...@@ -34,42 +34,15 @@ include/oox/ole/axcontrol.hxx:427 ...@@ -34,42 +34,15 @@ include/oox/ole/axcontrol.hxx:427
include/oox/ole/axcontrol.hxx:428 include/oox/ole/axcontrol.hxx:428
oox::ole::ComCtlModelBase mbComplexPart oox::ole::ComCtlModelBase mbComplexPart
1 1
include/svtools/HtmlWriter.hxx:29
HtmlWriter mbContentWritten
0
include/svtools/svparser.hxx:74 include/svtools/svparser.hxx:74
SvParser::TokenStackType nTokenValue SvParser::TokenStackType nTokenValue
0 0
include/svtools/svparser.hxx:75 include/svtools/svparser.hxx:75
SvParser::TokenStackType bTokenHasValue SvParser::TokenStackType bTokenHasValue
0 0
include/svx/svdviter.hxx:73 include/vcl/filter/pdfdocument.hxx:188
SdrViewIter mbNoMasterPage
0
include/tools/config.hxx:36
Config mnLockCount
1
include/vcl/filter/pdfdocument.hxx:174
vcl::filter::PDFNameElement m_nLength vcl::filter::PDFNameElement m_nLength
0 0
include/vcl/pdfwriter.hxx:548
vcl::PDFWriter::PDFSignContext m_pDerEncoded
0
include/vcl/pdfwriter.hxx:550
vcl::PDFWriter::PDFSignContext m_nDerEncoded
0
include/vcl/pdfwriter.hxx:552
vcl::PDFWriter::PDFSignContext m_pByteRange1
0
include/vcl/pdfwriter.hxx:554
vcl::PDFWriter::PDFSignContext m_nByteRange1
0
include/vcl/pdfwriter.hxx:556
vcl::PDFWriter::PDFSignContext m_pByteRange2
0
include/vcl/pdfwriter.hxx:558
vcl::PDFWriter::PDFSignContext m_nByteRange2
0
libreofficekit/source/gtk/lokdocview.cxx:84 libreofficekit/source/gtk/lokdocview.cxx:84
LOKDocViewPrivateImpl m_bIsLoading LOKDocViewPrivateImpl m_bIsLoading
0 0
...@@ -85,7 +58,7 @@ pyuno/source/module/pyuno_impl.hxx:312 ...@@ -85,7 +58,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:108 sc/inc/compiler.hxx:111
ScRawToken::(anonymous union)::(anonymous) eInForceArray ScRawToken::(anonymous union)::(anonymous) eInForceArray
0 0
sc/qa/unit/ucalc.hxx:41 sc/qa/unit/ucalc.hxx:41
...@@ -94,7 +67,7 @@ sc/qa/unit/ucalc.hxx:41 ...@@ -94,7 +67,7 @@ sc/qa/unit/ucalc.hxx:41
sd/inc/sdpptwrp.hxx:42 sd/inc/sdpptwrp.hxx:42
SdPPTFilter pBas SdPPTFilter pBas
0 0
sd/source/filter/html/htmlex.hxx:112 sd/source/filter/html/htmlex.hxx:113
HtmlExport mbAutoSlide HtmlExport mbAutoSlide
1 1
sfx2/source/appl/lnkbase2.cxx:77 sfx2/source/appl/lnkbase2.cxx:77
...@@ -106,7 +79,7 @@ sfx2/source/appl/lnkbase2.cxx:82 ...@@ -106,7 +79,7 @@ sfx2/source/appl/lnkbase2.cxx:82
sfx2/source/doc/doctemplates.cxx:136 sfx2/source/doc/doctemplates.cxx:136
(anonymous namespace)::WaitWindow_Impl mnTextStyle (anonymous namespace)::WaitWindow_Impl mnTextStyle
12576 12576
sfx2/source/view/ipclient.cxx:78 sfx2/source/view/ipclient.cxx:81
SfxBooleanFlagGuard m_bLifeValue SfxBooleanFlagGuard m_bLifeValue
1 1
soltools/cpp/cpp.h:120 soltools/cpp/cpp.h:120
...@@ -121,12 +94,24 @@ soltools/mkdepend/def.h:132 ...@@ -121,12 +94,24 @@ 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
sw/inc/hints.hxx:188 svtools/source/control/valueimp.hxx:81
SvtValueSetItem mpData
0
svx/source/svdraw/svdpdf.hxx:168
ImpSdrPdfImport maLineJoin
0
svx/source/svdraw/svdpdf.hxx:169
ImpSdrPdfImport maLineCap
0
sw/inc/hints.hxx:199
SwAttrSetChg m_bDelSet SwAttrSetChg m_bDelSet
0 0
sw/inc/pagepreviewlayout.hxx:49 sw/inc/pagepreviewlayout.hxx:49
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
...@@ -154,39 +139,33 @@ sw/source/filter/ww8/ww8par.hxx:655 ...@@ -154,39 +139,33 @@ sw/source/filter/ww8/ww8par.hxx:655
sw/source/filter/ww8/ww8par.hxx:664 sw/source/filter/ww8/ww8par.hxx:664
WW8FormulaControl mhpsCheckBox WW8FormulaControl mhpsCheckBox
20 20
sw/source/uibase/inc/envlop.hxx:66 sw/source/uibase/inc/envlop.hxx:76
SwEnvDlg pAddresseeSet SwEnvDlg pAddresseeSet
0 0
sw/source/uibase/inc/envlop.hxx:67 sw/source/uibase/inc/envlop.hxx:77
SwEnvDlg pSenderSet SwEnvDlg pSenderSet
0 0
unotools/source/config/saveopt.cxx:77 unotools/source/config/saveopt.cxx:77
SvtSaveOptions_Impl bROUserAutoSave SvtSaveOptions_Impl bROUserAutoSave
0 0
vcl/inc/salprn.hxx:41 vcl/inc/salprn.hxx:42
SalPrinterQueueInfo mnStatus SalPrinterQueueInfo mnStatus
0 0
vcl/inc/salprn.hxx:42 vcl/inc/salprn.hxx:43
SalPrinterQueueInfo mnJobs SalPrinterQueueInfo mnJobs
4294967295 4294967295
vcl/inc/salprn.hxx:43 vcl/inc/svdata.hxx:267
SalPrinterQueueInfo mpSysData
0
vcl/inc/svdata.hxx:268
ImplSVNWFData mnStatusBarLowerRightOffset ImplSVNWFData mnStatusBarLowerRightOffset
0 0
vcl/inc/svdata.hxx:284 vcl/inc/svdata.hxx:283
ImplSVNWFData mbCenteredTabs ImplSVNWFData mbCenteredTabs
0 0
vcl/inc/svdata.hxx:285 vcl/inc/svdata.hxx:284
ImplSVNWFData mbNoActiveTabTextRaise ImplSVNWFData mbNoActiveTabTextRaise
0 0
vcl/inc/svdata.hxx:287 vcl/inc/svdata.hxx:286
ImplSVNWFData mbProgressNeedsErase ImplSVNWFData mbProgressNeedsErase
0 0
vcl/source/control/morebtn.cxx:26
ImplMoreButtonData mpItemList
0
vcl/source/filter/jpeg/transupp.h:128 vcl/source/filter/jpeg/transupp.h:128
(anonymous) perfect (anonymous) perfect
0 0
...@@ -238,10 +217,10 @@ vcl/source/gdi/dibtools.cxx:116 ...@@ -238,10 +217,10 @@ vcl/source/gdi/dibtools.cxx:116
vcl/source/gdi/dibtools.cxx:117 vcl/source/gdi/dibtools.cxx:117
(anonymous namespace)::DIBV5Header nV5Reserved (anonymous namespace)::DIBV5Header nV5Reserved
0 0
vcl/source/gdi/pdfwriter_impl.hxx:698 vcl/source/gdi/pdfwriter_impl.hxx:699
vcl::PDFWriterImpl m_nInheritedPageWidth vcl::PDFWriterImpl m_nInheritedPageWidth
595 595
vcl/source/gdi/pdfwriter_impl.hxx:699 vcl/source/gdi/pdfwriter_impl.hxx:700
vcl::PDFWriterImpl m_nInheritedPageHeight vcl::PDFWriterImpl m_nInheritedPageHeight
842 842
writerfilter/source/dmapper/GraphicImport.cxx:223 writerfilter/source/dmapper/GraphicImport.cxx:223
......
...@@ -28,13 +28,12 @@ class SwBaseLink : public ::sfx2::SvBaseLink ...@@ -28,13 +28,12 @@ class SwBaseLink : public ::sfx2::SvBaseLink
{ {
SwContentNode* m_pContentNode; SwContentNode* m_pContentNode;
bool m_bNoDataFlag : 1; bool m_bNoDataFlag : 1;
bool m_bIgnoreDataChanged : 1;
public: public:
SwBaseLink( SfxLinkUpdateMode nMode, SotClipboardFormatId nFormat, SwContentNode* pNode = nullptr ) SwBaseLink( SfxLinkUpdateMode nMode, SotClipboardFormatId nFormat, SwContentNode* pNode = nullptr )
: ::sfx2::SvBaseLink( nMode, nFormat ), m_pContentNode( pNode ), : ::sfx2::SvBaseLink( nMode, nFormat ), m_pContentNode( pNode ),
m_bNoDataFlag( false ), m_bIgnoreDataChanged( false ) m_bNoDataFlag( false )
{} {}
virtual ~SwBaseLink() override; virtual ~SwBaseLink() override;
......
...@@ -90,9 +90,8 @@ static void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem ) ...@@ -90,9 +90,8 @@ static void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem )
} }
SwDoc* pDoc = m_pContentNode->GetDoc(); SwDoc* pDoc = m_pContentNode->GetDoc();
if( pDoc->IsInDtor() || ChkNoDataFlag() || m_bIgnoreDataChanged ) if( pDoc->IsInDtor() || ChkNoDataFlag() )
{ {
m_bIgnoreDataChanged = false;
return SUCCESS; return SUCCESS;
} }
...@@ -290,9 +289,6 @@ bool SwBaseLink::SwapIn( bool bWaitForData, bool bNativFormat ) ...@@ -290,9 +289,6 @@ bool SwBaseLink::SwapIn( bool bWaitForData, bool bNativFormat )
bRes = aValue.hasValue(); bRes = aValue.hasValue();
if ( bRes ) if ( bRes )
{ {
// The Flag needs to be reset on a SwapIn, because
// we want to reapply the data.
m_bIgnoreDataChanged = false;
DataChanged( aMimeType, aValue ); DataChanged( aMimeType, aValue );
} }
} }
......
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