summaryrefslogtreecommitdiffstats
path: root/forms/source/component
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-07 14:36:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-07 15:11:03 +0100
commit7ba7a974f6d9f4b265e72b8e91c5a175bc3a3b14 (patch)
tree6db04a6adf3f9607683e160cf698bf24a2838db5 /forms/source/component
parentrename WEEKNUM_ADD to WEEKNUM_EXCEL2003 in UI, tdf#50950 follow-up (diff)
downloadcore-7ba7a974f6d9f4b265e72b8e91c5a175bc3a3b14.tar.gz
core-7ba7a974f6d9f4b265e72b8e91c5a175bc3a3b14.zip
cppcheck: noExplicitConstructor
Change-Id: I32c6728ce7423fd997cdbec66feb8a6ba39948d2
Diffstat (limited to 'forms/source/component')
-rw-r--r--forms/source/component/CheckBox.hxx2
-rw-r--r--forms/source/component/Columns.hxx6
-rw-r--r--forms/source/component/ComboBox.hxx2
-rw-r--r--forms/source/component/Currency.hxx2
-rw-r--r--forms/source/component/DatabaseForm.cxx4
-rw-r--r--forms/source/component/DatabaseForm.hxx2
-rw-r--r--forms/source/component/Date.hxx2
-rw-r--r--forms/source/component/Edit.hxx2
-rw-r--r--forms/source/component/EventThread.hxx2
-rw-r--r--forms/source/component/Filter.hxx2
-rw-r--r--forms/source/component/FormComponent.cxx6
-rw-r--r--forms/source/component/FormattedField.hxx2
-rw-r--r--forms/source/component/FormsCollection.hxx2
-rw-r--r--forms/source/component/GroupBox.hxx2
-rw-r--r--forms/source/component/GroupManager.hxx4
-rw-r--r--forms/source/component/ImageButton.hxx2
-rw-r--r--forms/source/component/ImageControl.hxx2
-rw-r--r--forms/source/component/ListBox.cxx6
-rw-r--r--forms/source/component/ListBox.hxx2
-rw-r--r--forms/source/component/Numeric.hxx2
-rw-r--r--forms/source/component/Pattern.hxx2
-rw-r--r--forms/source/component/RadioButton.hxx2
-rw-r--r--forms/source/component/Time.hxx2
-rw-r--r--forms/source/component/clickableimage.hxx4
-rw-r--r--forms/source/component/entrylisthelper.hxx2
-rw-r--r--forms/source/component/errorbroadcaster.hxx2
-rw-r--r--forms/source/component/imgprod.cxx4
27 files changed, 37 insertions, 37 deletions
diff --git a/forms/source/component/CheckBox.hxx b/forms/source/component/CheckBox.hxx
index 1468cb06bb68..9971367fdb24 100644
--- a/forms/source/component/CheckBox.hxx
+++ b/forms/source/component/CheckBox.hxx
@@ -64,7 +64,7 @@ protected:
class OCheckBoxControl : public OBoundControl
{
public:
- OCheckBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
+ explicit OCheckBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
// XServiceInfo
OUString SAL_CALL getImplementationName()
diff --git a/forms/source/component/Columns.hxx b/forms/source/component/Columns.hxx
index f352ba49f113..c67f431f5703 100644
--- a/forms/source/component/Columns.hxx
+++ b/forms/source/component/Columns.hxx
@@ -63,7 +63,7 @@ protected:
public:
OGridColumn(const css::uno::Reference<css::uno::XComponentContext>& _rContext, const OUString& _sModelName = OUString());
- OGridColumn(const OGridColumn* _pOriginal );
+ explicit OGridColumn(const OGridColumn* _pOriginal );
virtual ~OGridColumn();
// UNO binding
@@ -119,8 +119,8 @@ class ClassName
,public OAggregationArrayUsageHelper< ClassName > \
{ \
public: \
- ClassName(const css::uno::Reference<css::uno::XComponentContext>& _rContext ); \
- ClassName(const ClassName* _pCloneFrom); \
+ explicit ClassName(const css::uno::Reference<css::uno::XComponentContext>& _rContext ); \
+ explicit ClassName(const ClassName* _pCloneFrom); \
\
virtual css::uno::Reference< css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; \
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE; \
diff --git a/forms/source/component/ComboBox.hxx b/forms/source/component/ComboBox.hxx
index 454cf88c96a6..ee48b9b67ee4 100644
--- a/forms/source/component/ComboBox.hxx
+++ b/forms/source/component/ComboBox.hxx
@@ -142,7 +142,7 @@ protected:
class OComboBoxControl : public OBoundControl
{
public:
- OComboBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
+ explicit OComboBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
// XServiceInfo
OUString SAL_CALL getImplementationName()
diff --git a/forms/source/component/Currency.hxx b/forms/source/component/Currency.hxx
index 6e6d56b2b376..ce13dab89e18 100644
--- a/forms/source/component/Currency.hxx
+++ b/forms/source/component/Currency.hxx
@@ -73,7 +73,7 @@ protected:
virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE;
public:
- OCurrencyControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
+ explicit OCurrencyControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
// css::lang::XServiceInfo
OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index a4438c77b3de..b11d663c3f84 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -122,7 +122,7 @@ namespace frm
class DocumentModifyGuard
{
public:
- DocumentModifyGuard( const Reference< XInterface >& _rxFormComponent )
+ explicit DocumentModifyGuard( const Reference< XInterface >& _rxFormComponent )
:m_xDocumentModify( getXModel( _rxFormComponent ), UNO_QUERY )
{
impl_changeModifiableFlag_nothrow( false );
@@ -167,7 +167,7 @@ protected:
public:
- OFormSubmitResetThread(ODatabaseForm* pControl) : OComponentEventThread(pControl) { }
+ explicit OFormSubmitResetThread(ODatabaseForm* pControl) : OComponentEventThread(pControl) { }
};
diff --git a/forms/source/component/DatabaseForm.hxx b/forms/source/component/DatabaseForm.hxx
index 8deeb00a95b1..acdc4beedf63 100644
--- a/forms/source/component/DatabaseForm.hxx
+++ b/forms/source/component/DatabaseForm.hxx
@@ -218,7 +218,7 @@ class ODatabaseForm :public OFormComponents
bool m_bSharingConnection : 1; // sal_True if the connection we're using is shared with out parent
public:
- ODatabaseForm(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
+ explicit ODatabaseForm(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
ODatabaseForm( const ODatabaseForm& _cloneSource );
virtual ~ODatabaseForm();
diff --git a/forms/source/component/Date.hxx b/forms/source/component/Date.hxx
index 2e46601e9887..c817a7039327 100644
--- a/forms/source/component/Date.hxx
+++ b/forms/source/component/Date.hxx
@@ -95,7 +95,7 @@ protected:
virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE;
public:
- ODateControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
+ explicit ODateControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
DECLARE_UNO3_AGG_DEFAULTS(ODateControl, OBoundControl)
// css::lang::XServiceInfo
diff --git a/forms/source/component/Edit.hxx b/forms/source/component/Edit.hxx
index c18402a7d45e..4384d2ed163f 100644
--- a/forms/source/component/Edit.hxx
+++ b/forms/source/component/Edit.hxx
@@ -131,7 +131,7 @@ class OEditControl : public OBoundControl
ImplSVEvent * m_nKeyEvent;
public:
- OEditControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
+ explicit OEditControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
virtual ~OEditControl();
DECLARE_UNO3_AGG_DEFAULTS(OEditControl, OBoundControl)
diff --git a/forms/source/component/EventThread.hxx b/forms/source/component/EventThread.hxx
index 83ccfa2e698a..a447b25a3d72 100644
--- a/forms/source/component/EventThread.hxx
+++ b/forms/source/component/EventThread.hxx
@@ -86,7 +86,7 @@ public:
DECLARE_UNO3_DEFAULTS(OComponentEventThread, OWeakObject)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type& _rType) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
- OComponentEventThread(::cppu::OComponentHelper* pCompImpl);
+ explicit OComponentEventThread(::cppu::OComponentHelper* pCompImpl);
virtual ~OComponentEventThread();
void addEvent( const css::lang::EventObject* _pEvt, bool bFlag = false );
diff --git a/forms/source/component/Filter.hxx b/forms/source/component/Filter.hxx
index ebbb04a258ee..8ce33689ce85 100644
--- a/forms/source/component/Filter.hxx
+++ b/forms/source/component/Filter.hxx
@@ -84,7 +84,7 @@ namespace frm
void initControlModel(css::uno::Reference< css::beans::XPropertySet >& xControlModel);
public:
- OFilterControl( const css::uno::Reference< css::uno::XComponentContext >& _rxORB );
+ explicit OFilterControl( const css::uno::Reference< css::uno::XComponentContext >& _rxORB );
DECLARE_UNO3_AGG_DEFAULTS(OFilterControl,OWeakAggObject)
css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index 6b653b478a18..f9e67b9c4c04 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -95,9 +95,9 @@ void ControlModelLock::addPropertyNotification( const sal_Int32 _nHandle, const
class FieldChangeNotifier
{
public:
- FieldChangeNotifier( ControlModelLock& _rLock )
- :m_rLock( _rLock )
- ,m_rModel( dynamic_cast< OBoundControlModel& >( _rLock.getModel() ) )
+ explicit FieldChangeNotifier(ControlModelLock& _rLock)
+ : m_rLock( _rLock )
+ , m_rModel( dynamic_cast< OBoundControlModel& >( _rLock.getModel() ) )
{
m_xOldField = m_rModel.getField();
}
diff --git a/forms/source/component/FormattedField.hxx b/forms/source/component/FormattedField.hxx
index f2f33bc526fd..55a4082ba294 100644
--- a/forms/source/component/FormattedField.hxx
+++ b/forms/source/component/FormattedField.hxx
@@ -152,7 +152,7 @@ class OFormattedModel
ImplSVEvent * m_nKeyEvent;
public:
- OFormattedControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
+ explicit OFormattedControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
virtual ~OFormattedControl();
DECLARE_UNO3_AGG_DEFAULTS(OFormattedControl, OBoundControl)
diff --git a/forms/source/component/FormsCollection.hxx b/forms/source/component/FormsCollection.hxx
index e2633fbd04cc..16377d0f6bca 100644
--- a/forms/source/component/FormsCollection.hxx
+++ b/forms/source/component/FormsCollection.hxx
@@ -49,7 +49,7 @@ class OFormsCollection
css::uno::Reference<css::uno::XInterface> m_xParent; // Parent
public:
- OFormsCollection(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
+ explicit OFormsCollection(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
OFormsCollection( const OFormsCollection& _cloneSource );
virtual ~OFormsCollection();
diff --git a/forms/source/component/GroupBox.hxx b/forms/source/component/GroupBox.hxx
index b3684df5ee59..0f496d56609d 100644
--- a/forms/source/component/GroupBox.hxx
+++ b/forms/source/component/GroupBox.hxx
@@ -61,7 +61,7 @@ protected:
class OGroupBoxControl : public OControl
{
public:
- OGroupBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
+ explicit OGroupBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
// XServiceInfo
OUString SAL_CALL getImplementationName()
diff --git a/forms/source/component/GroupManager.hxx b/forms/source/component/GroupManager.hxx
index 42fc607a6961..eee2fd0fabe0 100644
--- a/forms/source/component/GroupManager.hxx
+++ b/forms/source/component/GroupManager.hxx
@@ -142,7 +142,7 @@ class OGroup
friend class OGroupLess;
public:
- OGroup( const OUString& rGroupName );
+ explicit OGroup(const OUString& rGroupName);
virtual ~OGroup();
bool operator==( const OGroup& rGroup ) const;
@@ -176,7 +176,7 @@ class OGroupManager : public ::cppu::WeakImplHelper< css::beans::XPropertyChange
void removeFromGroupMap(const OUString& _sGroupName,const css::uno::Reference< css::beans::XPropertySet>& _xSet);
public:
- OGroupManager(const css::uno::Reference< css::container::XContainer >& _rxContainer);
+ explicit OGroupManager(const css::uno::Reference< css::container::XContainer >& _rxContainer);
virtual ~OGroupManager();
// css::lang::XEventListener
diff --git a/forms/source/component/ImageButton.hxx b/forms/source/component/ImageButton.hxx
index 671e256ff8f7..6a108afaef06 100644
--- a/forms/source/component/ImageButton.hxx
+++ b/forms/source/component/ImageButton.hxx
@@ -63,7 +63,7 @@ protected:
virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE;
public:
- OImageButtonControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
+ explicit OImageButtonControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
// XServiceInfo
OUString SAL_CALL getImplementationName()
diff --git a/forms/source/component/ImageControl.hxx b/forms/source/component/ImageControl.hxx
index df17da40be49..699c41b1fa34 100644
--- a/forms/source/component/ImageControl.hxx
+++ b/forms/source/component/ImageControl.hxx
@@ -156,7 +156,7 @@ private:
virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE;
public:
- OImageControlControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
+ explicit OImageControlControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
// UNO
DECLARE_UNO3_AGG_DEFAULTS( OImageControlControl, OBoundControl )
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 5cf73b084518..24e456ffa61e 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -96,7 +96,7 @@ namespace frm
struct AppendRowSetValueString : public ::std::unary_function< OUString, void >
{
- AppendRowSetValueString( OUString& _string )
+ explicit AppendRowSetValueString( OUString& _string )
:m_string( _string )
{
}
@@ -1434,7 +1434,7 @@ namespace frm
const Sequence< OUString >& m_rList;
public:
- ExtractStringFromSequence_Safe( const Sequence< OUString >& _rList ) : m_rList( _rList ) { }
+ explicit ExtractStringFromSequence_Safe( const Sequence< OUString >& _rList ) : m_rList( _rList ) { }
OUString operator ()( sal_Int16 _nIndex )
{
@@ -1485,7 +1485,7 @@ namespace frm
const ValueList& m_rList;
public:
- ExtractAnyFromValueList_Safe( const ValueList& _rList ) : m_rList( _rList ) { }
+ explicit ExtractAnyFromValueList_Safe( const ValueList& _rList ) : m_rList( _rList ) { }
Any operator ()( sal_Int16 _nIndex )
{
diff --git a/forms/source/component/ListBox.hxx b/forms/source/component/ListBox.hxx
index 7776d4c2153b..e99e486ee785 100644
--- a/forms/source/component/ListBox.hxx
+++ b/forms/source/component/ListBox.hxx
@@ -269,7 +269,7 @@ protected:
virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE;
public:
- OListBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
+ explicit OListBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
virtual ~OListBoxControl();
// UNO Anbindung
diff --git a/forms/source/component/Numeric.hxx b/forms/source/component/Numeric.hxx
index ed9d724eaa0e..eb048467a187 100644
--- a/forms/source/component/Numeric.hxx
+++ b/forms/source/component/Numeric.hxx
@@ -72,7 +72,7 @@ protected:
virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE;
public:
- ONumericControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
+ explicit ONumericControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
// css::lang::XServiceInfo
OUString SAL_CALL getImplementationName()
diff --git a/forms/source/component/Pattern.hxx b/forms/source/component/Pattern.hxx
index 97d68100e6bf..85404d6f7b03 100644
--- a/forms/source/component/Pattern.hxx
+++ b/forms/source/component/Pattern.hxx
@@ -79,7 +79,7 @@ protected:
virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE;
public:
- OPatternControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
+ explicit OPatternControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
// css::lang::XServiceInfo
OUString SAL_CALL getImplementationName()
diff --git a/forms/source/component/RadioButton.hxx b/forms/source/component/RadioButton.hxx
index 7a409742f5d1..7f894c35f888 100644
--- a/forms/source/component/RadioButton.hxx
+++ b/forms/source/component/RadioButton.hxx
@@ -75,7 +75,7 @@ private:
class ORadioButtonControl: public OBoundControl
{
public:
- ORadioButtonControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
+ explicit ORadioButtonControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
// XServiceInfo
OUString SAL_CALL getImplementationName()
diff --git a/forms/source/component/Time.hxx b/forms/source/component/Time.hxx
index 4fe59e7c1f61..c7da88c3b9ab 100644
--- a/forms/source/component/Time.hxx
+++ b/forms/source/component/Time.hxx
@@ -94,7 +94,7 @@ protected:
virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE;
public:
- OTimeControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
+ explicit OTimeControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
DECLARE_UNO3_AGG_DEFAULTS(OTimeControl, OBoundControl)
// css::lang::XServiceInfo
diff --git a/forms/source/component/clickableimage.hxx b/forms/source/component/clickableimage.hxx
index 1b852ddedc62..eb6c8cd535d6 100644
--- a/forms/source/component/clickableimage.hxx
+++ b/forms/source/component/clickableimage.hxx
@@ -162,7 +162,7 @@ namespace frm
typedef ::osl::MutexGuard GuardBase;
public:
- ImageModelMethodGuard( OClickableImageBaseModel& _rModel )
+ explicit ImageModelMethodGuard( OClickableImageBaseModel& _rModel )
:GuardBase( _rModel.getMutex( OClickableImageBaseModel::GuardAccess() ) )
{
if ( NULL == _rModel.getImageProducer( OClickableImageBaseModel::GuardAccess() ) )
@@ -271,7 +271,7 @@ namespace frm
bool ) SAL_OVERRIDE;
public:
- OImageProducerThread_Impl( OClickableImageBaseControl *pControl ) :
+ explicit OImageProducerThread_Impl( OClickableImageBaseControl *pControl ) :
OComponentEventThread( pControl )
{}
diff --git a/forms/source/component/entrylisthelper.hxx b/forms/source/component/entrylisthelper.hxx
index 7f6c5c07be6c..b9569936be29 100644
--- a/forms/source/component/entrylisthelper.hxx
+++ b/forms/source/component/entrylisthelper.hxx
@@ -58,7 +58,7 @@ namespace frm
protected:
- OEntryListHelper( OControlModel& _rControlModel );
+ explicit OEntryListHelper( OControlModel& _rControlModel );
OEntryListHelper( const OEntryListHelper& _rSource, OControlModel& _rControlModel );
virtual ~OEntryListHelper( );
diff --git a/forms/source/component/errorbroadcaster.hxx b/forms/source/component/errorbroadcaster.hxx
index f5846af5c8d2..03d3b813adf6 100644
--- a/forms/source/component/errorbroadcaster.hxx
+++ b/forms/source/component/errorbroadcaster.hxx
@@ -40,7 +40,7 @@ namespace frm
::cppu::OInterfaceContainerHelper m_aErrorListeners;
protected:
- OErrorBroadcaster( ::cppu::OBroadcastHelper& _rBHelper );
+ explicit OErrorBroadcaster( ::cppu::OBroadcastHelper& _rBHelper );
virtual ~OErrorBroadcaster( );
void SAL_CALL disposing();
diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx
index 3872abc01e05..81c29d3f905c 100644
--- a/forms/source/component/imgprod.cxx
+++ b/forms/source/component/imgprod.cxx
@@ -42,8 +42,8 @@ class ImgProdLockBytes : public SvLockBytes
public:
- ImgProdLockBytes( SvStream* pStm, bool bOwner );
- ImgProdLockBytes( css::uno::Reference< css::io::XInputStream > & rStreamRef );
+ ImgProdLockBytes( SvStream* pStm, bool bOwner );
+ explicit ImgProdLockBytes( css::uno::Reference< css::io::XInputStream > & rStreamRef );
virtual ~ImgProdLockBytes();
virtual ErrCode ReadAt( sal_uInt64 nPos, void* pBuffer, sal_Size nCount, sal_Size * pRead ) const SAL_OVERRIDE;