summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-25 15:28:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-26 09:57:21 +0100
commit6c9dfa8ab7cc25d6cc3ce988803118b5d56ea30b (patch)
tree83b683bb177d643385618e1f46642d014332a59d /uui
parentecdbd313838093055c66614d7e5793aacae7c5bd (diff)
cppcheck: noExplicitConstructor
Change-Id: If947733a205e8ece1845079be95cbc2d6cbd5029
Diffstat (limited to 'uui')
-rw-r--r--uui/source/fltdlg.cxx2
-rw-r--r--uui/source/fltdlg.hxx2
-rw-r--r--uui/source/iahndl.cxx2
-rw-r--r--uui/source/iahndl.hxx10
-rw-r--r--uui/source/interactionhandler.cxx2
-rw-r--r--uui/source/passwordcontainer.hxx2
-rw-r--r--uui/source/requeststringresolver.hxx2
7 files changed, 11 insertions, 11 deletions
diff --git a/uui/source/fltdlg.cxx b/uui/source/fltdlg.cxx
index c2135bead606..24e5476f2588 100644
--- a/uui/source/fltdlg.cxx
+++ b/uui/source/fltdlg.cxx
@@ -168,7 +168,7 @@ bool FilterDialog::AskForFilter( FilterNameListPtr& pSelectedItem )
class StringCalculator : public ::cppu::WeakImplHelper1< ::com::sun::star::util::XStringWidth >
{
public:
- StringCalculator( const OutputDevice* pDevice )
+ explicit StringCalculator( const OutputDevice* pDevice )
: m_pDevice( const_cast< OutputDevice * >( pDevice ) )
{
}
diff --git a/uui/source/fltdlg.hxx b/uui/source/fltdlg.hxx
index 958ad99f5f54..df0b8eeafbf8 100644
--- a/uui/source/fltdlg.hxx
+++ b/uui/source/fltdlg.hxx
@@ -46,7 +46,7 @@ class FilterDialog : public ModalDialog
{
// public interface
public:
- FilterDialog ( vcl::Window* pParentWindow );
+ explicit FilterDialog(vcl::Window* pParentWindow);
virtual ~FilterDialog();
virtual void dispose() SAL_OVERRIDE;
void SetURL ( const OUString& sURL );
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index 1f20c31ccafc..d16935bedd8e 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -112,7 +112,7 @@ namespace {
class HandleData : public osl::Condition
{
public:
- HandleData(
+ explicit HandleData(
uno::Reference< task::XInteractionRequest > const & rRequest)
: osl::Condition(),
m_rRequest(rRequest),
diff --git a/uui/source/iahndl.hxx b/uui/source/iahndl.hxx
index 437d0f26a541..1059b3c0a28b 100644
--- a/uui/source/iahndl.hxx
+++ b/uui/source/iahndl.hxx
@@ -69,8 +69,8 @@ struct InteractionHandlerData
OUString ServiceName;
InteractionHandlerData() {};
- InteractionHandlerData(const OUString & rService)
- : ServiceName( rService ){}
+ explicit InteractionHandlerData(const OUString & rService)
+ : ServiceName( rService ){}
};
typedef std::vector< InteractionHandlerData > InteractionHandlerDataList;
@@ -97,7 +97,7 @@ public:
com::sun::star::uno::Reference<
com::sun::star::awt::XWindow > const & rxWindow,
const OUString & rContextParam);
- UUIInteractionHelper(
+ explicit UUIInteractionHelper(
com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext > const & rxContext);
@@ -295,9 +295,9 @@ private:
class ErrorResource: private Resource
{
public:
- inline ErrorResource(ResId & rResId): Resource(rResId) {}
+ explicit ErrorResource(ResId & rResId): Resource(rResId) {}
- inline ~ErrorResource() { FreeResource(); }
+ ~ErrorResource() { FreeResource(); }
bool getString(ErrCode nErrorCode, OUString &rString) const;
};
diff --git a/uui/source/interactionhandler.cxx b/uui/source/interactionhandler.cxx
index 4cb9c523f458..f3984d11d877 100644
--- a/uui/source/interactionhandler.cxx
+++ b/uui/source/interactionhandler.cxx
@@ -44,7 +44,7 @@ private:
UUIInteractionHelper * m_pImpl;
public:
- UUIInteractionHandler(com::sun::star::uno::Reference<
+ explicit UUIInteractionHandler(com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext >
const & rxContext);
diff --git a/uui/source/passwordcontainer.hxx b/uui/source/passwordcontainer.hxx
index 6c4542cfea7e..04eb55b3f771 100644
--- a/uui/source/passwordcontainer.hxx
+++ b/uui/source/passwordcontainer.hxx
@@ -47,7 +47,7 @@ namespace uui {
class PasswordContainerHelper
{
public:
- PasswordContainerHelper(
+ explicit PasswordContainerHelper(
com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext > const &
xContext );
diff --git a/uui/source/requeststringresolver.hxx b/uui/source/requeststringresolver.hxx
index f7062ab578e5..4a21456b603b 100644
--- a/uui/source/requeststringresolver.hxx
+++ b/uui/source/requeststringresolver.hxx
@@ -52,7 +52,7 @@ private:
UUIInteractionRequestStringResolver(UUIInteractionRequestStringResolver &) SAL_DELETED_FUNCTION;
void operator =(UUIInteractionRequestStringResolver) SAL_DELETED_FUNCTION;
- UUIInteractionRequestStringResolver(
+ explicit UUIInteractionRequestStringResolver(
com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext >
const & rxContext);