summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-07 08:14:34 +0200
committerNoel Grandin <noel@peralex.com>2015-08-07 08:14:34 +0200
commit46791546a8aaef40eafc08e6e71b4b0785324564 (patch)
tree149c1b3d002404366ed7a410af8e82f4b51778c3 /shell
parent6343754e310a589cb49e2a1da0cd68472571179d (diff)
cppcheck:noExplicitConstructor
Change-Id: I940714e303b905b756ba077eeda6c41746bd421f
Diffstat (limited to 'shell')
-rw-r--r--shell/qa/zip/testzipimpl.hxx2
-rw-r--r--shell/source/cmdmail/cmdmailsuppl.hxx2
-rw-r--r--shell/source/sessioninstall/SyncDbusSessionHelper.cxx2
-rw-r--r--shell/source/tools/lngconvex/lngconvex.cxx6
-rw-r--r--shell/source/unix/exec/shellexec.hxx2
-rw-r--r--shell/source/unix/sysshell/recently_used_file_handler.cxx6
6 files changed, 10 insertions, 10 deletions
diff --git a/shell/qa/zip/testzipimpl.hxx b/shell/qa/zip/testzipimpl.hxx
index 5f85baafcfdf..6a2afc0cfe27 100644
--- a/shell/qa/zip/testzipimpl.hxx
+++ b/shell/qa/zip/testzipimpl.hxx
@@ -34,7 +34,7 @@ class TestZipImpl
ZipFile zipFile;
vector<string> expectedContents;
public:
- TestZipImpl(StreamInterface *stream);
+ explicit TestZipImpl(StreamInterface *stream);
~TestZipImpl();
bool test_directory();
bool test_hasContentCaseInSensitive();
diff --git a/shell/source/cmdmail/cmdmailsuppl.hxx b/shell/source/cmdmail/cmdmailsuppl.hxx
index eca787a1680f..02dc7f81e59a 100644
--- a/shell/source/cmdmail/cmdmailsuppl.hxx
+++ b/shell/source/cmdmail/cmdmailsuppl.hxx
@@ -44,7 +44,7 @@ class CmdMailSuppl :
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xConfigurationProvider;
public:
- CmdMailSuppl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext );
+ explicit CmdMailSuppl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext );
// XSimpleMailClientSupplier
diff --git a/shell/source/sessioninstall/SyncDbusSessionHelper.cxx b/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
index 9ffb88079686..e807254e8c8b 100644
--- a/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
+++ b/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
@@ -25,7 +25,7 @@ namespace
{
GError* m_pError;
public:
- GErrorWrapper(GError* pError) : m_pError(pError) {}
+ explicit GErrorWrapper(GError* pError) : m_pError(pError) {}
~GErrorWrapper()
{
if(!m_pError)
diff --git a/shell/source/tools/lngconvex/lngconvex.cxx b/shell/source/tools/lngconvex/lngconvex.cxx
index 633baf182c0c..b14cf638d165 100644
--- a/shell/source/tools/lngconvex/lngconvex.cxx
+++ b/shell/source/tools/lngconvex/lngconvex.cxx
@@ -154,11 +154,11 @@ class iso_lang_identifier
public:
iso_lang_identifier() {};
- iso_lang_identifier(const OString& str) :
+ explicit iso_lang_identifier(const OString& str) :
maBcp47(str)
{ }
- iso_lang_identifier(const std::string& str) :
+ explicit iso_lang_identifier(const std::string& str) :
maBcp47(str.c_str())
{ }
@@ -477,7 +477,7 @@ void inflate_rc_template_to_file(
string_container_t::const_iterator rct_iter_end = rctmpl.end();
if (!rctmpl.empty())
- start_language_section(oi, iter->first);
+ start_language_section(oi, iso_lang_identifier(iter->first));
for ( /**/ ;rct_iter != rct_iter_end; ++rct_iter)
{
diff --git a/shell/source/unix/exec/shellexec.hxx b/shell/source/unix/exec/shellexec.hxx
index a4e4e4a6db46..92d689433b27 100644
--- a/shell/source/unix/exec/shellexec.hxx
+++ b/shell/source/unix/exec/shellexec.hxx
@@ -39,7 +39,7 @@ class ShellExec : public ::cppu::WeakImplHelper2< com::sun::star::system::XSyste
m_xContext;
public:
- ShellExec(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext);
+ explicit ShellExec(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext);
// XSystemShellExecute
diff --git a/shell/source/unix/sysshell/recently_used_file_handler.cxx b/shell/source/unix/sysshell/recently_used_file_handler.cxx
index 0beba20e52c0..6add8d488c2d 100644
--- a/shell/source/unix/sysshell/recently_used_file_handler.cxx
+++ b/shell/source/unix/sysshell/recently_used_file_handler.cxx
@@ -215,7 +215,7 @@ namespace /* private */ {
public i_xml_parser_event_handler, private boost::noncopyable
{
public:
- recently_used_file_filter(recently_used_item_list_t& item_list) :
+ explicit recently_used_file_filter(recently_used_item_list_t& item_list) :
item_(NULL),
item_list_(item_list)
{
@@ -370,7 +370,7 @@ namespace /* private */ {
class find_item_predicate
{
public:
- find_item_predicate(const string_t& uri) :
+ explicit find_item_predicate(const string_t& uri) :
uri_(uri)
{}
@@ -442,7 +442,7 @@ namespace /* private */ {
struct cleanup_guard
{
- cleanup_guard(recently_used_item_list_t& item_list) :
+ explicit cleanup_guard(recently_used_item_list_t& item_list) :
item_list_(item_list)
{}
~cleanup_guard()