Kaydet (Commit) 4b5091cf authored tarafından Caolán McNamara's avatar Caolán McNamara

cppunit: noExplicitConstructor

Change-Id: Iaf1387ea236bf3a5db9b2165d5b827dbdcf95207
üst 06f1272a
...@@ -68,11 +68,14 @@ class ContainerListenerImpl : public ContainerListenerBASE ...@@ -68,11 +68,14 @@ class ContainerListenerImpl : public ContainerListenerBASE
{ {
Shell* mpShell; Shell* mpShell;
public: public:
explicit ContainerListenerImpl(Shell* pShell)
ContainerListenerImpl (Shell* pShell) : mpShell(pShell) { } : mpShell(pShell)
{
}
virtual ~ContainerListenerImpl() virtual ~ContainerListenerImpl()
{ } {
}
void addContainerListener( const ScriptDocument& rScriptDocument, const OUString& aLibName ) void addContainerListener( const ScriptDocument& rScriptDocument, const OUString& aLibName )
{ {
......
...@@ -62,8 +62,12 @@ private: ...@@ -62,8 +62,12 @@ private:
EntryType m_eType; EntryType m_eType;
public: public:
Entry (EntryType eType) : m_eType(eType) { } explicit Entry(EntryType eType)
virtual ~Entry (); : m_eType(eType)
{
}
virtual ~Entry();
EntryType GetType () const { return m_eType; } EntryType GetType () const { return m_eType; }
}; };
......
...@@ -38,7 +38,14 @@ struct BreakPoint ...@@ -38,7 +38,14 @@ struct BreakPoint
size_t nStopAfter; size_t nStopAfter;
size_t nHitCount; size_t nHitCount;
BreakPoint(size_t nL) { nLine = nL; nStopAfter = 0; nHitCount = 0; bEnabled = true; bTemp = false; } explicit BreakPoint(size_t nL)
: bEnabled(true)
, bTemp(false)
, nLine(nL)
, nStopAfter(0)
, nHitCount(0)
{
}
}; };
class BreakPointList class BreakPointList
......
...@@ -54,7 +54,7 @@ public: ...@@ -54,7 +54,7 @@ public:
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;
protected: protected:
Layout (vcl::Window* pParent); explicit Layout(vcl::Window* pParent);
void AddToLeft (DockingWindow* pWin, Size const& rSize) { aLeftSide.Add(pWin, rSize); } void AddToLeft (DockingWindow* pWin, Size const& rSize) { aLeftSide.Add(pWin, rSize); }
void AddToBottom (DockingWindow* pWin, Size const& rSize) { aBottomSide.Add(pWin, rSize); } void AddToBottom (DockingWindow* pWin, Size const& rSize) { aBottomSide.Add(pWin, rSize); }
......
...@@ -74,7 +74,10 @@ class DummyInteractionHandler : public HandlerImpl_BASE ...@@ -74,7 +74,10 @@ class DummyInteractionHandler : public HandlerImpl_BASE
{ {
Reference< task::XInteractionHandler2 > m_xHandler; Reference< task::XInteractionHandler2 > m_xHandler;
public: public:
DummyInteractionHandler( const Reference< task::XInteractionHandler2 >& xHandler ) : m_xHandler( xHandler ){} explicit DummyInteractionHandler(const Reference<task::XInteractionHandler2>& xHandler)
: m_xHandler(xHandler)
{
}
virtual void SAL_CALL handle( const Reference< task::XInteractionRequest >& rRequest ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE virtual void SAL_CALL handle( const Reference< task::XInteractionRequest >& rRequest ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
{ {
...@@ -94,7 +97,10 @@ private: ...@@ -94,7 +97,10 @@ private:
ScriptDocument m_aDocument; ScriptDocument m_aDocument;
public: public:
LibUserData (ScriptDocument const& rDocument) : m_aDocument(rDocument) { } explicit LibUserData(ScriptDocument const& rDocument)
: m_aDocument(rDocument)
{
}
virtual ~LibUserData() {}; virtual ~LibUserData() {};
const ScriptDocument& GetDocument() const { return m_aDocument; } const ScriptDocument& GetDocument() const { return m_aDocument; }
...@@ -1166,7 +1172,7 @@ class OLibCommandEnvironment : public LibCommandEnvironmentHelper ...@@ -1166,7 +1172,7 @@ class OLibCommandEnvironment : public LibCommandEnvironmentHelper
Reference< task::XInteractionHandler > mxInteraction; Reference< task::XInteractionHandler > mxInteraction;
public: public:
OLibCommandEnvironment( Reference< task::XInteractionHandler > xInteraction ) explicit OLibCommandEnvironment(const Reference<task::XInteractionHandler>& xInteraction)
: mxInteraction( xInteraction ) : mxInteraction( xInteraction )
{} {}
......
...@@ -70,7 +70,7 @@ class GotoLineDialog : public ModalDialog ...@@ -70,7 +70,7 @@ class GotoLineDialog : public ModalDialog
VclPtr<OKButton> m_pOKButton; VclPtr<OKButton> m_pOKButton;
DECL_LINK(OkButtonHandler, void *); DECL_LINK(OkButtonHandler, void *);
public: public:
GotoLineDialog(vcl::Window * pParent); explicit GotoLineDialog(vcl::Window * pParent);
virtual ~GotoLineDialog(); virtual ~GotoLineDialog();
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;
sal_Int32 GetLineNumber() const; sal_Int32 GetLineNumber() const;
...@@ -87,7 +87,7 @@ private: ...@@ -87,7 +87,7 @@ private:
DECL_LINK(OkButtonHandler, void *); DECL_LINK(OkButtonHandler, void *);
public: public:
ExportDialog( vcl::Window * pParent ); explicit ExportDialog( vcl::Window * pParent );
virtual ~ExportDialog(); virtual ~ExportDialog();
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;
...@@ -153,7 +153,7 @@ private: ...@@ -153,7 +153,7 @@ private:
VclPtr< ::CheckBox> m_pReplaceBox; VclPtr< ::CheckBox> m_pReplaceBox;
public: public:
LibDialog( vcl::Window* pParent ); explicit LibDialog(vcl::Window* pParent);
virtual ~LibDialog(); virtual ~LibDialog();
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;
...@@ -255,7 +255,7 @@ protected: ...@@ -255,7 +255,7 @@ protected:
VclPtr<TabDialog> pTabDlg; VclPtr<TabDialog> pTabDlg;
public: public:
LibPage( vcl::Window* pParent ); explicit LibPage(vcl::Window* pParent);
virtual ~LibPage(); virtual ~LibPage();
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;
......
...@@ -35,8 +35,8 @@ namespace basctl ...@@ -35,8 +35,8 @@ namespace basctl
class ObjectCatalog : public DockingWindow class ObjectCatalog : public DockingWindow
{ {
public: public:
ObjectCatalog (vcl::Window* pParent); explicit ObjectCatalog(vcl::Window* pParent);
virtual ~ObjectCatalog (); virtual ~ObjectCatalog();
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;
public: public:
void UpdateEntries () { aTree->UpdateEntries(); } void UpdateEntries () { aTree->UpdateEntries(); }
......
...@@ -123,7 +123,10 @@ namespace basctl ...@@ -123,7 +123,10 @@ namespace basctl
class FilterDocuments : public docs::IDocumentDescriptorFilter class FilterDocuments : public docs::IDocumentDescriptorFilter
{ {
public: public:
FilterDocuments( bool _bFilterInvisible ) : m_bFilterInvisible( _bFilterInvisible ) { } explicit FilterDocuments(bool _bFilterInvisible)
: m_bFilterInvisible(_bFilterInvisible)
{
}
virtual ~FilterDocuments() {} virtual ~FilterDocuments() {}
...@@ -193,8 +196,8 @@ namespace basctl ...@@ -193,8 +196,8 @@ namespace basctl
public: public:
Impl (); Impl ();
Impl (Reference<XModel> const& rxDocument); explicit Impl(Reference<XModel> const& rxDocument);
virtual ~Impl (); virtual ~Impl();
/** determines whether the instance refers to a valid "document" with script and /** determines whether the instance refers to a valid "document" with script and
dialog libraries dialog libraries
...@@ -1128,7 +1131,7 @@ namespace basctl ...@@ -1128,7 +1131,7 @@ namespace basctl
{ {
struct DocumentTitleLess : public ::std::binary_function< ScriptDocument, ScriptDocument, bool > struct DocumentTitleLess : public ::std::binary_function< ScriptDocument, ScriptDocument, bool >
{ {
DocumentTitleLess( const CollatorWrapper& _rCollator ) explicit DocumentTitleLess( const CollatorWrapper& _rCollator )
:m_aCollator( _rCollator ) :m_aCollator( _rCollator )
{ {
} }
......
...@@ -30,7 +30,7 @@ class SIDEModel : public SfxBaseModel, ...@@ -30,7 +30,7 @@ class SIDEModel : public SfxBaseModel,
{ {
static void notImplemented() throw ( ::com::sun::star::io::IOException ); static void notImplemented() throw ( ::com::sun::star::io::IOException );
public: public:
SIDEModel( SfxObjectShell *pObjSh = 0 ); explicit SIDEModel(SfxObjectShell *pObjSh = 0);
virtual ~SIDEModel(); virtual ~SIDEModel();
//XInterface //XInterface
......
...@@ -46,7 +46,7 @@ template <class PointType> double theta( const PointType& p1, const PointType& p ...@@ -46,7 +46,7 @@ template <class PointType> double theta( const PointType& p1, const PointType& p
template <class PointType> class ThetaCompare : public ::std::binary_function< const PointType&, const PointType&, bool > template <class PointType> class ThetaCompare : public ::std::binary_function< const PointType&, const PointType&, bool >
{ {
public: public:
ThetaCompare( const PointType& rRefPoint ) : maRefPoint( rRefPoint ) {} explicit ThetaCompare( const PointType& rRefPoint ) : maRefPoint( rRefPoint ) {}
bool operator() ( const PointType& p1, const PointType& p2 ) bool operator() ( const PointType& p1, const PointType& p2 )
{ {
......
...@@ -46,17 +46,18 @@ class MacroSnippet ...@@ -46,17 +46,18 @@ class MacroSnippet
int nLine; int nLine;
int nCol; int nCol;
ErrorDetail() : nLine(0), nCol(0) {} ErrorDetail() : nLine(0), nCol(0) {}
}; }
MacroSnippet( const OUString& sSource ) : mbError(false) explicit MacroSnippet(const OUString& sSource)
: mbError(false)
{ {
InitSnippet(); InitSnippet();
MakeModule( sSource ); MakeModule( sSource );
}; }
MacroSnippet() : mbError(false) MacroSnippet() : mbError(false)
{ {
InitSnippet(); InitSnippet();
}; }
void LoadSourceFromFile( const OUString& sMacroFileURL ) void LoadSourceFromFile( const OUString& sMacroFileURL )
{ {
OUString sSource; OUString sSource;
......
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