diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-25 10:17:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-26 08:10:37 +0100 |
commit | c7e2b4ff70c751541167fea7adacaf2556b43312 (patch) | |
tree | f710e404978e6e289c14730c49b4c891ceef4bda | |
parent | 122da2eea23faf6916c3f3b9e1895f5c404b26c7 (diff) |
loplugin:datamembershadow in SmartHdl
rename both these fields
Change-Id: I7c414bb440872cdc36d29613be52a5a7542ff9bb
Reviewed-on: https://gerrit.libreoffice.org/48565
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | compilerplugins/clang/datamembershadow.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/func/smarttag.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/inc/smarttag.hxx | 4 | ||||
-rw-r--r-- | sd/source/ui/view/viewoverlaymanager.cxx | 6 |
4 files changed, 7 insertions, 9 deletions
diff --git a/compilerplugins/clang/datamembershadow.cxx b/compilerplugins/clang/datamembershadow.cxx index e89a44214339..801e3f746da5 100644 --- a/compilerplugins/clang/datamembershadow.cxx +++ b/compilerplugins/clang/datamembershadow.cxx @@ -78,8 +78,6 @@ bool DataMemberShadow::VisitFieldDecl(FieldDecl const * fieldDecl) return true; if (loplugin::isSamePathname(aFileName, SRCDIR "/sd/source/ui/inc/unopage.hxx")) return true; - if (loplugin::isSamePathname(aFileName, SRCDIR "/sd/source/ui/view/viewoverlaymanager.cxx")) - return true; if (loplugin::isSamePathname(aFileName, SRCDIR "/store/source/stortree.hxx") || loplugin::isSamePathname(aFileName, SRCDIR "/store/source/stordata.hxx")) return true; diff --git a/sd/source/ui/func/smarttag.cxx b/sd/source/ui/func/smarttag.cxx index f72830c15383..d63f7a096eda 100644 --- a/sd/source/ui/func/smarttag.cxx +++ b/sd/source/ui/func/smarttag.cxx @@ -350,14 +350,14 @@ void SmartTagSet::CheckPossibilities() SmartHdl::SmartHdl( const SmartTagReference& xTag, SdrObject* pObject, const Point& rPnt, SdrHdlKind eNewKind /*=SdrHdlKind::Move*/ ) : SdrHdl( rPnt, eNewKind ) -, mxTag( xTag ) +, mxSmartTag( xTag ) { SetObj( pObject ); } SmartHdl::SmartHdl( const SmartTagReference& xTag, const Point& rPnt, SdrHdlKind eNewKind /*=SdrHdlKind::Move*/ ) : SdrHdl( rPnt, eNewKind ) -, mxTag( xTag ) +, mxSmartTag( xTag ) { } diff --git a/sd/source/ui/inc/smarttag.hxx b/sd/source/ui/inc/smarttag.hxx index 821f2e45f364..98e13f88f687 100644 --- a/sd/source/ui/inc/smarttag.hxx +++ b/sd/source/ui/inc/smarttag.hxx @@ -167,11 +167,11 @@ public: SmartHdl( const SmartTagReference& xTag, SdrObject* pObject, const Point& rPnt, SdrHdlKind eNewKind ); SmartHdl( const SmartTagReference& xTag, const Point& rPnt, SdrHdlKind eNewKind ); - const SmartTagReference& getTag() const { return mxTag; } + const SmartTagReference& getTag() const { return mxSmartTag; } virtual bool isMarkable() const; protected: - SmartTagReference mxTag; + SmartTagReference mxSmartTag; }; } // end of namespace sd diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx index e48d2392979a..c1cec7013f47 100644 --- a/sd/source/ui/view/viewoverlaymanager.cxx +++ b/sd/source/ui/view/viewoverlaymanager.cxx @@ -151,7 +151,7 @@ public: static void HideTip(); private: - rtl::Reference< ChangePlaceholderTag > mxTag; + rtl::Reference< ChangePlaceholderTag > mxChangePlaceholderTag; int mnHighlightId; Size maImageSize; @@ -159,7 +159,7 @@ private: ImageButtonHdl::ImageButtonHdl( const SmartTagReference& xTag /*, sal_uInt16 nSID, const Image& rImage, const Image& rImageMO*/, const Point& rPnt ) : SmartHdl( xTag, rPnt, SdrHdlKind::SmartTag ) -, mxTag( dynamic_cast< ChangePlaceholderTag* >( xTag.get() ) ) +, mxChangePlaceholderTag( dynamic_cast< ChangePlaceholderTag* >( xTag.get() ) ) , mnHighlightId( -1 ) , maImageSize( 42, 42 ) { @@ -222,7 +222,7 @@ void ImageButtonHdl::CreateB2dIAObject() const Point aTagPos( GetPos() ); basegfx::B2DPoint aPosition( aTagPos.X(), aTagPos.Y() ); - BitmapEx aBitmapEx( mxTag->createOverlayImage( mnHighlightId ) ); // maImageMO.GetBitmapEx() : maImage.GetBitmapEx() ); + BitmapEx aBitmapEx( mxChangePlaceholderTag->createOverlayImage( mnHighlightId ) ); // maImageMO.GetBitmapEx() : maImage.GetBitmapEx() ); maImageSize = aBitmapEx.GetSizePixel(); maImageSize.Width() >>= 1; maImageSize.Height() >>= 1; |