diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-21 19:13:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-23 08:16:18 +0200 |
commit | d254f8a926d7d3ec4565d01f7a41ad3d9d7c9e87 (patch) | |
tree | 6f33b99f7344c3861972760428fb974073130d8d /include | |
parent | 7c08c1af7116346f2dc0b669e231d82f4230a8c7 (diff) |
loplugin:singlevalfields improve unaryoperator
when we see a unaryoperator, unless it's one of a small set, we can
know (mostly) that the field will not be written.
there is still a small risk of false+ with code taking references
via conditional expressions.
Change-Id: I96fa808067576a50e5eaf425338e225b4e0bdd4e
Reviewed-on: https://gerrit.libreoffice.org/53263
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/HtmlWriter.hxx | 1 | ||||
-rw-r--r-- | include/svx/galmisc.hxx | 1 | ||||
-rw-r--r-- | include/svx/svdviter.hxx | 2 | ||||
-rw-r--r-- | include/tools/config.hxx | 1 |
4 files changed, 0 insertions, 5 deletions
diff --git a/include/svtools/HtmlWriter.hxx b/include/svtools/HtmlWriter.hxx index 25030f6dffe8..49f2aa6c02f2 100644 --- a/include/svtools/HtmlWriter.hxx +++ b/include/svtools/HtmlWriter.hxx @@ -26,7 +26,6 @@ private: SvStream& mrStream; bool mbElementOpen; - bool mbContentWritten; bool mbCharactersWritten; bool mbPrettyPrint; /// XML namespace, in case of XHTML. diff --git a/include/svx/galmisc.hxx b/include/svx/galmisc.hxx index 0bdcbffa86d3..fbc3a4bc9a98 100644 --- a/include/svx/galmisc.hxx +++ b/include/svx/galmisc.hxx @@ -144,7 +144,6 @@ using TransferableHelper::CopyToClipboard; sal_uInt32 mnObjectPos; tools::SvRef<SotStorageStream> mxModelStream; GraphicObject* mpGraphicObject; - ImageMap* mpImageMap; INetURLObject* mpURL; GalleryTransferable( GalleryTheme* pTheme, sal_uInt32 nObjectPos, bool bLazy ); diff --git a/include/svx/svdviter.hxx b/include/svx/svdviter.hxx index 090001fe60f0..125a4c5e6180 100644 --- a/include/svx/svdviter.hxx +++ b/include/svx/svdviter.hxx @@ -70,8 +70,6 @@ class SVX_DLLPUBLIC SdrViewIter size_t mnListenerNum; - bool mbNoMasterPage : 1; - private: SVX_DLLPRIVATE void ImpInitVars(); SVX_DLLPRIVATE SdrView* ImpFindView(); diff --git a/include/tools/config.hxx b/include/tools/config.hxx index 8d1e853d1f07..d6a00aa61d64 100644 --- a/include/tools/config.hxx +++ b/include/tools/config.hxx @@ -33,7 +33,6 @@ private: ImplConfigData* mpData; ImplGroupData* mpActGroup; sal_uInt32 mnDataUpdateId; - sal_uInt16 mnLockCount; TOOLS_DLLPRIVATE bool ImplUpdateConfig() const; TOOLS_DLLPRIVATE ImplGroupData* ImplGetGroup() const; |