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

loplugin:datamembershadow in SvxUnoTextRangeBase

make the superclass member private

Change-Id: I665d87bfdfc3d7804cd4cac6108f9bc65b9ca2b5
Reviewed-on: https://gerrit.libreoffice.org/48552Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst dd42329b
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
* Check for data member being shadowed. * Check for data member being shadowed.
* *
* @TODO check for any members in superclass hierarchy with duplicate names, * @TODO check for any members in superclass hierarchy with duplicate names,
* regardless of their visibility,
* more specific names will make the code easier to read * more specific names will make the code easier to read
*/ */
namespace namespace
...@@ -84,12 +85,8 @@ bool DataMemberShadow::VisitFieldDecl(FieldDecl const * fieldDecl) ...@@ -84,12 +85,8 @@ bool DataMemberShadow::VisitFieldDecl(FieldDecl const * fieldDecl)
if (loplugin::isSamePathname(aFileName, SRCDIR "/store/source/stortree.hxx") if (loplugin::isSamePathname(aFileName, SRCDIR "/store/source/stortree.hxx")
|| loplugin::isSamePathname(aFileName, SRCDIR "/store/source/stordata.hxx")) || loplugin::isSamePathname(aFileName, SRCDIR "/store/source/stordata.hxx"))
return true; return true;
if (loplugin::isSamePathname(aFileName, SRCDIR "/svx/source/inc/cell.hxx"))
return true;
if (loplugin::isSamePathname(aFileName, SRCDIR "/sw/source/uibase/inc/dbtree.hxx")) if (loplugin::isSamePathname(aFileName, SRCDIR "/sw/source/uibase/inc/dbtree.hxx"))
return true; return true;
if (loplugin::isSamePathname(aFileName, SRCDIR "/vcl/unx/generic/print/genpspgraphics.cxx"))
return true;
const CXXRecordDecl* parentCXXRecordDecl = dyn_cast<CXXRecordDecl>(fieldDecl->getDeclContext()); const CXXRecordDecl* parentCXXRecordDecl = dyn_cast<CXXRecordDecl>(fieldDecl->getDeclContext());
if (!parentCXXRecordDecl) { if (!parentCXXRecordDecl) {
......
...@@ -208,7 +208,7 @@ void CheckSelection( struct ESelection& rSel, SvxEditSource *pEdit ) throw() ...@@ -208,7 +208,7 @@ void CheckSelection( struct ESelection& rSel, SvxEditSource *pEdit ) throw()
UNO3_GETIMPLEMENTATION_IMPL( SvxUnoTextRangeBase ); UNO3_GETIMPLEMENTATION_IMPL( SvxUnoTextRangeBase );
SvxUnoTextRangeBase::SvxUnoTextRangeBase(const SvxItemPropertySet* _pSet) SvxUnoTextRangeBase::SvxUnoTextRangeBase(const SvxItemPropertySet* _pSet)
: mpEditSource(nullptr) , mpPropSet(_pSet) : mpPropSet(_pSet), mpEditSource(nullptr)
{ {
} }
......
...@@ -250,11 +250,11 @@ class EDITENG_DLLPUBLIC SvxUnoTextRangeBase : public css::text::XTextRange, ...@@ -250,11 +250,11 @@ class EDITENG_DLLPUBLIC SvxUnoTextRangeBase : public css::text::XTextRange,
{ {
friend class SvxUnoTextRangeEnumeration; friend class SvxUnoTextRangeEnumeration;
friend class ::accessibility::AccessibleEditableTextPara; friend class ::accessibility::AccessibleEditableTextPara;
const SvxItemPropertySet* mpPropSet;
protected: protected:
SvxEditSource* mpEditSource; SvxEditSource* mpEditSource;
ESelection maSelection; ESelection maSelection;
const SvxItemPropertySet* mpPropSet;
/// @throws css::beans::UnknownPropertyException /// @throws css::beans::UnknownPropertyException
/// @throws css::beans::PropertyVetoException /// @throws css::beans::PropertyVetoException
......
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