diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-15 17:32:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-15 20:03:35 +0100 |
commit | d6790de07ff225f9e5b58152d01719e5fbe9e6cd (patch) | |
tree | cd00ab904e893bf14670fd8c4d9efa58b02cb64b /stoc/source/security | |
parent | 15dfcb7f461893f83abcf28bfe01a4164209a160 (diff) |
cppcheck: noExplicitConstructor
Change-Id: Id438b987f72ae57bd4fa882e01fba17d3fa5b95b
Diffstat (limited to 'stoc/source/security')
-rw-r--r-- | stoc/source/security/file_policy.cxx | 2 | ||||
-rw-r--r-- | stoc/source/security/permissions.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx index 3dc06e8515f0..920e464a1e63 100644 --- a/stoc/source/security/file_policy.cxx +++ b/stoc/source/security/file_policy.cxx @@ -71,7 +71,7 @@ protected: virtual void SAL_CALL disposing() SAL_OVERRIDE; public: - FilePolicy( Reference< XComponentContext > const & xComponentContext ); + explicit FilePolicy( Reference< XComponentContext > const & xComponentContext ); virtual ~FilePolicy(); // XPolicy impl diff --git a/stoc/source/security/permissions.h b/stoc/source/security/permissions.h index ee40365c15c2..b5fbd37dd203 100644 --- a/stoc/source/security/permissions.h +++ b/stoc/source/security/permissions.h @@ -51,7 +51,7 @@ public: class AllPermission : public Permission { public: - inline AllPermission( + explicit AllPermission( ::rtl::Reference< Permission > const & next = ::rtl::Reference< Permission >() ) : Permission( ALL, next ) {} @@ -70,7 +70,7 @@ public: inline PermissionCollection( PermissionCollection const & collection ) : m_head( collection.m_head ) {} - inline PermissionCollection( ::rtl::Reference< Permission > const & single ) + explicit PermissionCollection( ::rtl::Reference< Permission > const & single ) : m_head( single ) {} PermissionCollection( |