loplugin:privatebase: Make various derivations public

...assuming they were implicitly made private by accident rather than by design.
(And private derivation can cause unexpected failure of dynamic_cast, cf.
63b67ab5ca "Use public derivation, and remove
then-unnecessary downcasts.")

Change-Id: Id821afba34fd2f155e30fac903567707e46d1fde
This commit is contained in:
Stephan Bergmann
2016-01-11 13:11:27 +01:00
parent 549810971a
commit 608dee4f5f
13 changed files with 21 additions and 21 deletions

View File

@@ -67,7 +67,7 @@ class SelectorListBox : public ListBox
typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XServiceInfo> ElementSelectorToolbarController_BASE; typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XServiceInfo> ElementSelectorToolbarController_BASE;
class ElementSelectorToolbarController : public ::svt::ToolboxController class ElementSelectorToolbarController : public ::svt::ToolboxController
, ElementSelectorToolbarController_BASE , public ElementSelectorToolbarController_BASE
{ {
public: public:
explicit ElementSelectorToolbarController(); explicit ElementSelectorToolbarController();

View File

@@ -33,7 +33,7 @@ namespace com { namespace sun { namespace star { namespace beans {
namespace dbaui namespace dbaui
{ {
class OQueryTextView; class OQueryTextView;
class OSqlEdit : public MultiLineEditSyntaxHighlight, utl::ConfigurationListener class OSqlEdit : public MultiLineEditSyntaxHighlight, public utl::ConfigurationListener
{ {
private: private:
class ChangesListener; class ChangesListener;

View File

@@ -224,7 +224,7 @@ namespace xforms
*/ */
template< typename CONCRETE_DATA_TYPE_IMPL, typename SUPERCLASS = OXSDDataType > template< typename CONCRETE_DATA_TYPE_IMPL, typename SUPERCLASS = OXSDDataType >
class ODerivedDataType :public SUPERCLASS class ODerivedDataType :public SUPERCLASS
,::comphelper::OPropertyArrayUsageHelper< CONCRETE_DATA_TYPE_IMPL > ,public ::comphelper::OPropertyArrayUsageHelper< CONCRETE_DATA_TYPE_IMPL >
{ {
private: private:
bool m_bPropertiesRegistered; bool m_bPropertiesRegistered;

View File

@@ -62,7 +62,7 @@ class ScChart2DataProvider : public
css::chart2::data::XRangeXMLConversion, css::chart2::data::XRangeXMLConversion,
css::beans::XPropertySet, css::beans::XPropertySet,
css::lang::XServiceInfo>, css::lang::XServiceInfo>,
SfxListener public SfxListener
{ {
public: public:
@@ -188,7 +188,7 @@ class ScChart2DataSource : public
::cppu::WeakImplHelper< ::cppu::WeakImplHelper<
css::chart2::data::XDataSource, css::chart2::data::XDataSource,
css::lang::XServiceInfo>, css::lang::XServiceInfo>,
SfxListener public SfxListener
{ {
public: public:
@@ -235,7 +235,7 @@ class ScChart2DataSequence : public
css::util::XModifyBroadcaster, css::util::XModifyBroadcaster,
css::beans::XPropertySet, css::beans::XPropertySet,
css::lang::XServiceInfo>, css::lang::XServiceInfo>,
SfxListener, public SfxListener,
private boost::noncopyable private boost::noncopyable
{ {
public: public:

View File

@@ -358,7 +358,7 @@ private:
mutable DocDataType maDocs; mutable DocDataType maDocs;
}; };
class SC_DLLPUBLIC ScExternalRefManager : public formula::ExternalReferenceHelper, SfxListener class SC_DLLPUBLIC ScExternalRefManager : public formula::ExternalReferenceHelper, public SfxListener
{ {
public: public:

View File

@@ -79,7 +79,7 @@ struct ScClipData;
#define SC_DROP_NAVIGATOR 1 #define SC_DROP_NAVIGATOR 1
#define SC_DROP_TABLE 2 #define SC_DROP_TABLE 2
class ScModule: public SfxModule, public SfxListener, utl::ConfigurationListener class ScModule: public SfxModule, public SfxListener, public utl::ConfigurationListener
{ {
Timer aIdleTimer; Timer aIdleTimer;
Idle aSpellIdle; Idle aSpellIdle;

View File

@@ -74,7 +74,7 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
class ScExportTest : public ScBootstrapFixture, XmlTestTools class ScExportTest : public ScBootstrapFixture, public XmlTestTools
{ {
protected: protected:
virtual void registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx) override; virtual void registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx) override;

View File

@@ -72,7 +72,7 @@ struct ScMyShape
typedef std::list<ScMyShape> ScMyShapeList; typedef std::list<ScMyShape> ScMyShapeList;
class ScMyShapesContainer : ScMyIteratorBase class ScMyShapesContainer : public ScMyIteratorBase
{ {
private: private:
ScMyShapeList aShapeList; ScMyShapeList aShapeList;
@@ -101,7 +101,7 @@ struct ScMyNoteShape
typedef std::list<ScMyNoteShape> ScMyNoteShapeList; typedef std::list<ScMyNoteShape> ScMyNoteShapeList;
class ScMyNoteShapesContainer : ScMyIteratorBase class ScMyNoteShapesContainer : public ScMyIteratorBase
{ {
private: private:
ScMyNoteShapeList aNoteShapeList; ScMyNoteShapeList aNoteShapeList;
@@ -129,7 +129,7 @@ struct ScMyMergedRange
typedef std::list<ScMyMergedRange> ScMyMergedRangeList; typedef std::list<ScMyMergedRange> ScMyMergedRangeList;
class ScMyMergedRangesContainer : ScMyIteratorBase class ScMyMergedRangesContainer : public ScMyIteratorBase
{ {
private: private:
ScMyMergedRangeList aRangeList; ScMyMergedRangeList aRangeList;
@@ -166,7 +166,7 @@ struct ScMyAreaLink
typedef ::std::list< ScMyAreaLink > ScMyAreaLinkList; typedef ::std::list< ScMyAreaLink > ScMyAreaLinkList;
class ScMyAreaLinksContainer : ScMyIteratorBase class ScMyAreaLinksContainer : public ScMyIteratorBase
{ {
private: private:
ScMyAreaLinkList aAreaLinkList; ScMyAreaLinkList aAreaLinkList;
@@ -193,7 +193,7 @@ struct ScMyCellRangeAddress : css::table::CellRangeAddress
typedef std::list<ScMyCellRangeAddress> ScMyEmptyDatabaseRangeList; typedef std::list<ScMyCellRangeAddress> ScMyEmptyDatabaseRangeList;
class ScMyEmptyDatabaseRangesContainer : ScMyIteratorBase class ScMyEmptyDatabaseRangesContainer : public ScMyIteratorBase
{ {
private: private:
ScMyEmptyDatabaseRangeList aDatabaseList; ScMyEmptyDatabaseRangeList aDatabaseList;
@@ -222,7 +222,7 @@ struct ScMyDetectiveObj
typedef ::std::list< ScMyDetectiveObj > ScMyDetectiveObjList; typedef ::std::list< ScMyDetectiveObj > ScMyDetectiveObjList;
typedef ::std::vector< ScMyDetectiveObj > ScMyDetectiveObjVec; typedef ::std::vector< ScMyDetectiveObj > ScMyDetectiveObjVec;
class ScMyDetectiveObjContainer : ScMyIteratorBase class ScMyDetectiveObjContainer : public ScMyIteratorBase
{ {
private: private:
ScMyDetectiveObjList aDetectiveObjList; ScMyDetectiveObjList aDetectiveObjList;
@@ -256,7 +256,7 @@ struct ScMyDetectiveOp
typedef ::std::list< ScMyDetectiveOp > ScMyDetectiveOpList; typedef ::std::list< ScMyDetectiveOp > ScMyDetectiveOpList;
typedef ::std::vector< ScMyDetectiveOp > ScMyDetectiveOpVec; typedef ::std::vector< ScMyDetectiveOp > ScMyDetectiveOpVec;
class ScMyDetectiveOpContainer : ScMyIteratorBase class ScMyDetectiveOpContainer : public ScMyIteratorBase
{ {
private: private:
ScMyDetectiveOpList aDetectiveOpList; ScMyDetectiveOpList aDetectiveOpList;

View File

@@ -330,7 +330,7 @@ namespace {
/** Read the resource file and process it into a sequence of properties /** Read the resource file and process it into a sequence of properties
that can be passed to the printing dialog. that can be passed to the printing dialog.
*/ */
class DialogCreator : Resource class DialogCreator : public Resource
{ {
public: public:
DialogCreator (bool bImpress, sal_Int32 nCurPage) DialogCreator (bool bImpress, sal_Int32 nCurPage)

View File

@@ -85,7 +85,7 @@ public:
static const OUString GetExportSymbolSetName( const OUString &rUiName ); static const OUString GetExportSymbolSetName( const OUString &rUiName );
}; };
class SmModule : public SfxModule, utl::ConfigurationListener class SmModule : public SfxModule, public utl::ConfigurationListener
{ {
std::unique_ptr<svtools::ColorConfig> mpColorConfig; std::unique_ptr<svtools::ColorConfig> mpColorConfig;
std::unique_ptr<SmMathConfig> mpConfig; std::unique_ptr<SmMathConfig> mpConfig;

View File

@@ -70,7 +70,7 @@ class SfxItemSet;
namespace svx { namespace sidebar { class GalleryControl; } } namespace svx { namespace sidebar { class GalleryControl; } }
class GalleryBrowser1 : public Control, SfxListener class GalleryBrowser1 : public Control, public SfxListener
{ {
friend class GalleryBrowser; friend class GalleryBrowser;
friend class svx::sidebar::GalleryControl; friend class svx::sidebar::GalleryControl;

View File

@@ -79,7 +79,7 @@ typedef ::cppu::WeakAggComponentImplHelper7<
class SvxGraphCtrlAccessibleContext: class SvxGraphCtrlAccessibleContext:
private comphelper::OBaseMutex, public SvxGraphCtrlAccessibleContext_Base, private comphelper::OBaseMutex, public SvxGraphCtrlAccessibleContext_Base,
SfxListener, accessibility::IAccessibleViewForwarder public SfxListener, public accessibility::IAccessibleViewForwarder
{ {
public: public:
friend class GraphCtrl; friend class GraphCtrl;

View File

@@ -48,7 +48,7 @@ using namespace vcl;
// kinput2 IME needs special key handling since key release events are filtered in // kinput2 IME needs special key handling since key release events are filtered in
// preeditmode and XmbResetIC does not work // preeditmode and XmbResetIC does not work
class XKeyEventOp : XKeyEvent class XKeyEventOp : public XKeyEvent
{ {
private: private:
void init(); void init();