summaryrefslogtreecommitdiff
path: root/unoidl/source
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 /unoidl/source
parentecdbd313838093055c66614d7e5793aacae7c5bd (diff)
cppcheck: noExplicitConstructor
Change-Id: If947733a205e8ece1845079be95cbc2d6cbd5029
Diffstat (limited to 'unoidl/source')
-rw-r--r--unoidl/source/sourceprovider-scanner.hxx4
-rw-r--r--unoidl/source/unoidl-check.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/unoidl/source/sourceprovider-scanner.hxx b/unoidl/source/sourceprovider-scanner.hxx
index 614340e41b48..2b624a83ce6d 100644
--- a/unoidl/source/sourceprovider-scanner.hxx
+++ b/unoidl/source/sourceprovider-scanner.hxx
@@ -76,8 +76,8 @@ class SourceProviderPolymorphicStructTypeTemplateEntityPad:
public SourceProviderEntityPad
{
public:
- SourceProviderPolymorphicStructTypeTemplateEntityPad(bool published):
- SourceProviderEntityPad(published)
+ explicit SourceProviderPolymorphicStructTypeTemplateEntityPad(bool published)
+ : SourceProviderEntityPad(published)
{}
std::vector<OUString> typeParameters;
diff --git a/unoidl/source/unoidl-check.cxx b/unoidl/source/unoidl-check.cxx
index 22dff88d5f51..c6cdf4c7a9f1 100644
--- a/unoidl/source/unoidl-check.cxx
+++ b/unoidl/source/unoidl-check.cxx
@@ -140,7 +140,7 @@ OUString showDirection(
}
struct EqualsAnnotation {
- EqualsAnnotation(OUString const & name): name_(name) {}
+ explicit EqualsAnnotation(OUString const & name): name_(name) {}
bool operator ()(unoidl::AnnotatedReference const & ref)
{ return ref.name == name_; }