loplugin:privatebase: Make derivation from noncopyable explicitly private

Change-Id: Ia410950353aec0106ea82d025ed3ee89c79ca127
This commit is contained in:
Stephan Bergmann 2016-01-11 12:48:52 +01:00
parent ea5b48e9da
commit 9ff5abf2e1
50 changed files with 61 additions and 61 deletions

View File

@ -21,7 +21,7 @@ namespace vlc
{
namespace wrapper
{
class EventHandler : public ::osl::Thread, boost::noncopyable
class EventHandler : public ::osl::Thread, private boost::noncopyable
{
public:
EventHandler();

View File

@ -24,7 +24,7 @@ namespace vlc
namespace wrapper
{
class EventHandler;
class EventManager : boost::noncopyable
class EventManager : private boost::noncopyable
{
public:

View File

@ -31,7 +31,7 @@ namespace vlc
namespace wrapper
{
template<class T>
class ThreadsafeQueue : boost::noncopyable
class ThreadsafeQueue : private boost::noncopyable
{
public:
ThreadsafeQueue();

View File

@ -34,7 +34,7 @@ namespace basctl
class ScriptDocument;
class SAL_NO_VTABLE DocumentEventListener : ::boost::noncopyable
class SAL_NO_VTABLE DocumentEventListener : private ::boost::noncopyable
{
public:
virtual void onDocumentCreated( const ScriptDocument& _rDocument ) = 0;

View File

@ -56,7 +56,7 @@ public:
mutable css::uno::Sequence<double> Doubles;
};
class VDataSeries final : boost::noncopyable
class VDataSeries final : private boost::noncopyable
{
public:
VDataSeries( const css::uno::Reference<css::chart2::XDataSeries>& xDataSeries );

View File

@ -36,7 +36,7 @@ namespace drawinglayer
{
namespace // anonymous namespace
{
class TubeBuffer : boost::noncopyable
class TubeBuffer : private boost::noncopyable
{
private:
// data for buffered tube primitives
@ -118,7 +118,7 @@ namespace drawinglayer
return rTheBuffer.getLineTubeSegments(nSegments, rMaterial);
}
class CapBuffer : boost::noncopyable
class CapBuffer : private boost::noncopyable
{
private:
// data for buffered cap primitives
@ -193,7 +193,7 @@ namespace drawinglayer
return rTheBuffer.getLineCapSegments(nSegments, rMaterial);
}
class CapRoundBuffer : boost::noncopyable
class CapRoundBuffer : private boost::noncopyable
{
private:
// data for buffered capround primitives

View File

@ -233,7 +233,7 @@ public:
// class ContentNode
class ContentNode : boost::noncopyable
class ContentNode : private boost::noncopyable
{
private:
OUString maString;

View File

@ -123,7 +123,7 @@ public:
};
class ContentInfo : boost::noncopyable
class ContentInfo : private boost::noncopyable
{
friend class EditTextObjectImpl;
public:
@ -173,7 +173,7 @@ public:
#endif
};
class EditTextObjectImpl : boost::noncopyable
class EditTextObjectImpl : private boost::noncopyable
{
public:
typedef std::vector<std::unique_ptr<ContentInfo> > ContentInfosType;

View File

@ -389,7 +389,7 @@ public:
// ImpEditEngine
class ImpEditEngine : public SfxListener, boost::noncopyable
class ImpEditEngine : public SfxListener, private boost::noncopyable
{
friend class EditEngine;
friend class EditDbg;

View File

@ -67,7 +67,7 @@ enum UpdateState {
UPDATESTATES_COUNT
};
class UpdateHandler : ::boost::noncopyable,
class UpdateHandler : private ::boost::noncopyable,
public cppu::WeakImplHelper< css::awt::XActionListener,
css::awt::XTopWindowListener,
css::task::XInteractionHandler,

View File

@ -35,7 +35,7 @@ typedef ::cppu::WeakComponentImplHelper<
class ODFSerializer : private cppu::BaseMutex,
public ODFSerializerBase,
boost::noncopyable
private boost::noncopyable
{
public:
explicit ODFSerializer(const uno::Reference<io::XOutputStream>& xOut) :

View File

@ -236,7 +236,7 @@ class ScChart2DataSequence : public
css::beans::XPropertySet,
css::lang::XServiceInfo>,
SfxListener,
boost::noncopyable
private boost::noncopyable
{
public:
explicit ScChart2DataSequence( ScDocument* pDoc,

View File

@ -29,7 +29,7 @@ namespace sc {
struct ColumnBlockPosition;
class ColumnBlockPositionSet;
class ClipContextBase : boost::noncopyable
class ClipContextBase : private boost::noncopyable
{
std::unique_ptr<ColumnBlockPositionSet> mpSet;

View File

@ -14,7 +14,7 @@
#include "column.hxx"
class ScColumnTextWidthIterator : boost::noncopyable
class ScColumnTextWidthIterator : private boost::noncopyable
{
sc::CellTextAttrStoreType& mrCellTextAttrs;
const size_t mnEnd;

View File

@ -47,7 +47,7 @@ struct SC_DLLPUBLIC ColRowSpan
* Structure that stores segments of boolean flags per column, and perform
* custom action on those segments.
*/
class ColumnSpanSet : boost::noncopyable
class ColumnSpanSet : private boost::noncopyable
{
public:
typedef mdds::flat_segment_tree<SCROW, bool> ColumnSpansType;

View File

@ -38,7 +38,7 @@ enum class SvtScriptType;
* position calculation, or anything else that requires expensive
* computation which are unnecessary and undesirable during import.
*/
class SC_DLLPUBLIC ScDocumentImport : boost::noncopyable
class SC_DLLPUBLIC ScDocumentImport : private boost::noncopyable
{
std::unique_ptr<ScDocumentImportImpl> mpImpl;

View File

@ -29,7 +29,7 @@ namespace sc {
class DataStream;
struct DocumentLinkManagerImpl;
class DocumentLinkManager : boost::noncopyable
class DocumentLinkManager : private boost::noncopyable
{
std::unique_ptr<DocumentLinkManagerImpl> mpImpl;

View File

@ -41,7 +41,7 @@ struct ScDPNumGroupInfo;
* This class represents the cached data part of the datapilot cache table
* implementation.
*/
class SC_DLLPUBLIC ScDPCache : boost::noncopyable
class SC_DLLPUBLIC ScDPCache : private boost::noncopyable
{
typedef std::unordered_set<OUString, OUStringHash> StringSetType;

View File

@ -46,7 +46,7 @@ struct ScDPResultFilter
* <p>If the pivot table layout only consists of either column or row
* dimensions, the root node only has one child node.</p>
*/
class ScDPResultTree : boost::noncopyable
class ScDPResultTree : private boost::noncopyable
{
public:
typedef std::vector<double> ValuesType;

View File

@ -299,7 +299,7 @@ public:
ScDPDimension* getByIndex(long nIndex) const;
};
class ScDPDimension : boost::noncopyable, public cppu::WeakImplHelper<
class ScDPDimension : private boost::noncopyable, public cppu::WeakImplHelper<
css::sheet::XHierarchiesSupplier,
css::container::XNamed,
css::util::XCloneable,
@ -706,7 +706,7 @@ public:
SCROW GetSrcItemsCount();
};
class ScDPMember : boost::noncopyable, public cppu::WeakImplHelper<
class ScDPMember : private boost::noncopyable, public cppu::WeakImplHelper<
css::container::XNamed,
css::beans::XPropertySet,
css::lang::XServiceInfo >

View File

@ -24,7 +24,7 @@ namespace sc {
struct ColumnBlockPosition;
class ColumnBlockPositionSet;
class StartListeningContext : boost::noncopyable
class StartListeningContext : private boost::noncopyable
{
ScDocument& mrDoc;
std::shared_ptr<ColumnBlockPositionSet> mpSet;
@ -36,7 +36,7 @@ public:
ColumnBlockPosition* getBlockPosition(SCTAB nTab, SCCOL nCol);
};
class EndListeningContext : boost::noncopyable
class EndListeningContext : private boost::noncopyable
{
ScDocument& mrDoc;
ColumnSpanSet maSet;
@ -60,7 +60,7 @@ public:
void purgeEmptyBroadcasters();
};
class PurgeListenerAction : public ColumnSpanSet::Action, boost::noncopyable
class PurgeListenerAction : public ColumnSpanSet::Action, private boost::noncopyable
{
ScDocument& mrDoc;
std::unique_ptr<ColumnBlockPosition> mpBlockPos;

View File

@ -114,7 +114,7 @@ class ScDBData;
class ScDocumentImport;
class ScHint;
class ScTable : boost::noncopyable
class ScTable : private boost::noncopyable
{
private:
typedef ::std::vector< ScRange > ScRangeVec;

View File

@ -108,7 +108,7 @@ public:
// ScHeaderFooterTextData: shared data between sub objects of a ScHeaderFooterTextObj
class ScHeaderFooterTextData : boost::noncopyable
class ScHeaderFooterTextData : private boost::noncopyable
{
private:
EditTextObject* mpTextObj;

View File

@ -219,7 +219,7 @@ struct ScSortInfo
};
IMPL_FIXEDMEMPOOL_NEWDEL( ScSortInfo )
class ScSortInfoArray : boost::noncopyable
class ScSortInfoArray : private boost::noncopyable
{
public:

View File

@ -54,7 +54,7 @@ struct AreaListener
Used in a Unique Associative Container.
*/
class ScBroadcastArea : boost::noncopyable
class ScBroadcastArea : private boost::noncopyable
{
private:
ScBroadcastArea* pUpdateChainNext;

View File

@ -81,7 +81,7 @@ private:
};
/// (Partially) abstract base class for an operand
class DynamicKernelArgument : boost::noncopyable
class DynamicKernelArgument : private boost::noncopyable
{
public:
DynamicKernelArgument( const ScCalcConfig& config, const std::string& s, FormulaTreeNodeRef ft );

View File

@ -121,7 +121,7 @@ class ScStyleSheetPool;
class SvStream;
/** Contains static methods used anywhere in the filters. */
class ScfTools : boost::noncopyable
class ScfTools : private boost::noncopyable
{
public:

View File

@ -209,7 +209,7 @@ class ScPatternAttr;
/** This class provides methods to create an XclExpString.
@descr The string can be created from an edit engine text object or
directly from a Calc edit cell. */
class XclExpStringHelper : boost::noncopyable
class XclExpStringHelper : private boost::noncopyable
{
public:
/** Creates a new unformatted string from the passed string.
@ -393,7 +393,7 @@ private:
/** This class contains static methods to encode a file URL.
@descr Excel stores URLs in a format that contains special control characters,
i.e. for directory separators or volume names. */
class XclExpUrlHelper : boost::noncopyable
class XclExpUrlHelper : private boost::noncopyable
{
public:
/** Encodes and returns the URL passed in rAbsUrl to an Excel like URL.

View File

@ -105,7 +105,7 @@ class EditTextObject;
/** This class provides methods to convert an XclImpString.
@The string can be converted to an edit engine text object or directly
to a Calc edit cell. */
class XclImpStringHelper : boost::noncopyable
class XclImpStringHelper : private boost::noncopyable
{
public:
/** Returns a new edit engine text object.
@ -247,7 +247,7 @@ private:
/** This class contains static methods to decode an URL stored in an Excel file.
@descr Excel URLs can contain a sheet name, for instance: path\[test.xls]Sheet1
This sheet name will be extracted automatically. */
class XclImpUrlHelper : boost::noncopyable
class XclImpUrlHelper : private boost::noncopyable
{
public:
/** Decodes an encoded external document URL with optional sheet name.
@ -292,7 +292,7 @@ class ScTokenArray;
/** This class stores one cached value of a cached value list (used for instance in
CRN, EXTERNNAME, tArray). */
class XclImpCachedValue : boost::noncopyable
class XclImpCachedValue : private boost::noncopyable
{
public:
/** Creates a cached value and reads contents from stream and stores it with its array address. */

View File

@ -76,7 +76,7 @@ XclExpStream& operator<<( XclExpStream& rStrm, const XclGuid& rGuid );
// Excel Tools ================================================================
/** This class contains static helper methods for the Excel import and export filters. */
class XclTools : boost::noncopyable
class XclTools : private boost::noncopyable
{
public:
// GUID's -----------------------------------------------------------------

View File

@ -47,7 +47,7 @@ namespace {
* Cache the token array for the last cell position in each column. We use
* one cache per sheet.
*/
class CachedTokenArray : boost::noncopyable
class CachedTokenArray : private boost::noncopyable
{
public:

View File

@ -110,7 +110,7 @@ bool IgnoreCaseCompare::operator()( const OUString& rName1, const OUString& rNam
return rName1.compareToIgnoreAsciiCase(rName2 ) < 0;
}
class WorkbookGlobals : boost::noncopyable
class WorkbookGlobals : private boost::noncopyable
{
public:
explicit WorkbookGlobals( ExcelFilter& rFilter );

View File

@ -315,7 +315,7 @@ struct ScMyCell
~ScMyCell();
};
class ScMyNotEmptyCellsIterator : boost::noncopyable
class ScMyNotEmptyCellsIterator : private boost::noncopyable
{
css::uno::Reference<css::sheet::XSpreadsheet> xTable;
css::uno::Reference<css::table::XCellRange> xCellRange;

View File

@ -820,7 +820,7 @@ typedef std::vector<ScMyImportValidation> ScMyImportValidations;
class ScMyStylesImportHelper;
class ScXMLEditAttributeMap;
class ScXMLImport: public SvXMLImport, boost::noncopyable
class ScXMLImport: public SvXMLImport, private boost::noncopyable
{
typedef std::unordered_map< OUString, sal_Int16, OUStringHash > CellTypeMap;
typedef ::std::map<SCTAB, std::unique_ptr<ScMyNamedExpressions>> SheetNamedExpMap;

View File

@ -33,7 +33,7 @@ namespace datastreams {
class ReaderThread;
}
class DataStream : boost::noncopyable
class DataStream : private boost::noncopyable
{
public:
struct Cell

View File

@ -52,7 +52,7 @@ struct ESelection;
// ScInputHandler
class ScInputHandler : boost::noncopyable
class ScInputHandler : private boost::noncopyable
{
private:
VclPtr<ScInputWindow> pInputWin;

View File

@ -80,7 +80,7 @@ public:
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
};
class ScTabView : boost::noncopyable
class ScTabView : private boost::noncopyable
{
private:
enum BlockMode { None = 0, Normal = 1, Own = 2 };

View File

@ -426,7 +426,7 @@ vector<ScTokenRef> Chart2PositionMap::getDataRowRanges(SCROW nRow) const
* Designed to be a drop-in replacement for ScChartPositioner, in order to
* handle external references.
*/
class Chart2Positioner : boost::noncopyable
class Chart2Positioner : private boost::noncopyable
{
enum GlueType
{

View File

@ -38,7 +38,7 @@ class ResourceFactoryManager;
/** Manage the set of active resources. Activate and deactivate resources.
*/
class ConfigurationControllerResourceManager
: ::boost::noncopyable
: private ::boost::noncopyable
{
public:
/** For every active resource both the resource itself as well as its

View File

@ -35,7 +35,7 @@ namespace sdext { namespace presenter {
/** Collection of functions to ease the life of a canvas user.
*/
class PresenterCanvasHelper
: ::boost::noncopyable
: private ::boost::noncopyable
{
public:
PresenterCanvasHelper();

View File

@ -135,7 +135,7 @@ private:
//==== PresenterSlideSorter::MouseOverManager =================================
class PresenterSlideSorter::MouseOverManager
: ::boost::noncopyable
: private ::boost::noncopyable
{
public:
MouseOverManager (

View File

@ -31,7 +31,7 @@ namespace sdext { namespace presenter {
/** Functions for painting UI elements.
*/
class PresenterUIPainter
: ::boost::noncopyable
: private ::boost::noncopyable
{
public:
PresenterUIPainter();

View File

@ -166,7 +166,7 @@ bool IsLockingUsed()
} // anonymous namespace
class SfxMedium_Impl : boost::noncopyable
class SfxMedium_Impl : private boost::noncopyable
{
public:
StreamMode m_nStorOpenMode;

View File

@ -42,7 +42,7 @@ namespace slideshow
objects report any pending update, commitUpdates() does
nothing.
*/
class ScreenUpdater : boost::noncopyable
class ScreenUpdater : private boost::noncopyable
{
public:
explicit ScreenUpdater( UnoViewContainer const& rViewContainer );

View File

@ -51,7 +51,7 @@ namespace accessibility
> AccessibleTableShape_Base;
/** @descr
*/
class AccessibleTableShape : boost::noncopyable, public AccessibleTableShape_Base, public css::accessibility::XAccessibleTableSelection
class AccessibleTableShape : private boost::noncopyable, public AccessibleTableShape_Base, public css::accessibility::XAccessibleTableSelection
{
public:
AccessibleTableShape( const AccessibleShapeInfo& rShapeInfo, const AccessibleShapeTreeInfo& rShapeTreeInfo );
@ -159,7 +159,7 @@ typedef ::cppu::WeakImplHelper<
css::accessibility::XAccessibleTableSelection >
AccessibleTableHeaderShape_BASE;
class AccessibleTableHeaderShape : boost::noncopyable,
class AccessibleTableHeaderShape : private boost::noncopyable,
public MutexOwner,
public AccessibleTableHeaderShape_BASE
{

View File

@ -48,7 +48,7 @@ class AccessibleShapeTreeInfo;
typedef ::cppu::ImplInheritanceHelper< AccessibleContextBase, css::accessibility::XAccessibleExtendedComponent > AccessibleCellBase;
class AccessibleCell : boost::noncopyable, public AccessibleCellBase, public AccessibleComponentBase, public IAccessibleViewForwarderListener
class AccessibleCell : private boost::noncopyable, public AccessibleCellBase, public AccessibleComponentBase, public IAccessibleViewForwarderListener
{
public:
AccessibleCell( const css::uno::Reference< css::accessibility::XAccessible>& rxParent, const sdr::table::CellRef& rCell, sal_Int32 nIndex, const AccessibleShapeTreeInfo& rShapeTreeInfo);

View File

@ -72,7 +72,7 @@ namespace sw
const SfxPoolItem* m_pNew;
};
/// refactoring out the some of the more sane SwClient functionality
class SW_DLLPUBLIC WriterListener : ::boost::noncopyable
class SW_DLLPUBLIC WriterListener : private ::boost::noncopyable
{
friend class ::SwModify;
friend class ::sw::ClientIteratorBase;

View File

@ -130,7 +130,7 @@ namespace
See also: BeginSwBlock and EndSwBlock.
*/
class WriterSpecificAutoFormatBlock : ::boost::noncopyable
class WriterSpecificAutoFormatBlock : private ::boost::noncopyable
{
public:
explicit WriterSpecificAutoFormatBlock(SvStream &rStream) : _rStream(rStream)

View File

@ -439,7 +439,7 @@ OUString BasicProjImportHelper::getProjectName()
return sProjName;
}
class Sttb : TBBase, private boost::noncopyable
class Sttb : public TBBase, private boost::noncopyable
{
struct SBBItem
{

View File

@ -42,7 +42,7 @@ namespace packages = com::sun::star::packages;
namespace
{
class PositionHolder : boost::noncopyable
class PositionHolder : private boost::noncopyable
{
public:
explicit PositionHolder(const Reference<XSeekable> &rxSeekable);