diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-10 14:26:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-10 14:26:54 +0200 |
commit | 215269e3031e31fd64e3aa38167875a042b8c80c (patch) | |
tree | 927dba1b8bed9c168f7cb01aafb81d2111789d4c /unoidl/source/sourceprovider-scanner.hxx | |
parent | acbe968ef0d40fb90e0f839e3e2702a43a0ae703 (diff) |
Silence some false Covertiy scan warnings about uninitialized members
Change-Id: I5e1d870a60f4c0d4b805c615d0e3c958e856bf8c
Diffstat (limited to 'unoidl/source/sourceprovider-scanner.hxx')
-rw-r--r-- | unoidl/source/sourceprovider-scanner.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/unoidl/source/sourceprovider-scanner.hxx b/unoidl/source/sourceprovider-scanner.hxx index ed5105f254b7..c1959a76b739 100644 --- a/unoidl/source/sourceprovider-scanner.hxx +++ b/unoidl/source/sourceprovider-scanner.hxx @@ -233,7 +233,9 @@ struct SourceProviderEntity { explicit SourceProviderEntity(Kind theKind): kind(theKind) { assert(theKind >= KIND_INTERFACE_DECL); } - SourceProviderEntity() {} // needed for std::map::operator [] + SourceProviderEntity(): // needed for std::map::operator [] + kind() // avoid false warnings about uninitialized members + {} Kind kind; rtl::Reference<unoidl::Entity> entity; @@ -243,7 +245,10 @@ struct SourceProviderEntity { struct SourceProviderScannerData { SourceProviderScannerData( rtl::Reference<unoidl::Manager> const & theManager): - manager(theManager), errorLine(0) + manager(theManager), + sourcePosition(), sourceEnd(), + // avoid false warnings about uninitialized members + errorLine(0) { assert(manager.is()); } void setSource(void const * address, sal_uInt64 size) { |