Silence some false Covertiy scan warnings about uninitialized members
Change-Id: I5e1d870a60f4c0d4b805c615d0e3c958e856bf8c
This commit is contained in:
@@ -85,13 +85,18 @@ struct SourceProviderType {
|
|||||||
TYPE_INTERFACE, TYPE_INSTANTIATED_POLYMORPHIC_STRUCT, TYPE_PARAMETER
|
TYPE_INTERFACE, TYPE_INSTANTIATED_POLYMORPHIC_STRUCT, TYPE_PARAMETER
|
||||||
};
|
};
|
||||||
|
|
||||||
SourceProviderType() {}
|
SourceProviderType():
|
||||||
|
type(), entity() // avoid false warnings about uninitialized members
|
||||||
|
{}
|
||||||
|
|
||||||
explicit SourceProviderType(Type theType): type(theType)
|
explicit SourceProviderType(Type theType):
|
||||||
|
type(theType),
|
||||||
|
entity() // avoid false warnings about uninitialized member
|
||||||
{ assert(theType <= TYPE_ANY); }
|
{ assert(theType <= TYPE_ANY); }
|
||||||
|
|
||||||
explicit SourceProviderType(SourceProviderType const * componentType):
|
explicit SourceProviderType(SourceProviderType const * componentType):
|
||||||
type(TYPE_SEQUENCE)
|
type(TYPE_SEQUENCE),
|
||||||
|
entity() // avoid false warnings about uninitialized member
|
||||||
{ assert(componentType != 0); subtypes.push_back(*componentType); }
|
{ assert(componentType != 0); subtypes.push_back(*componentType); }
|
||||||
|
|
||||||
SourceProviderType(
|
SourceProviderType(
|
||||||
@@ -113,7 +118,8 @@ struct SourceProviderType {
|
|||||||
{ assert(theEntity != 0); }
|
{ assert(theEntity != 0); }
|
||||||
|
|
||||||
explicit SourceProviderType(OUString const & identifier):
|
explicit SourceProviderType(OUString const & identifier):
|
||||||
type(TYPE_PARAMETER), name(identifier)
|
type(TYPE_PARAMETER), name(identifier),
|
||||||
|
entity() // avoid false warnings about uninitialized member
|
||||||
{}
|
{}
|
||||||
|
|
||||||
OUString getName() const;
|
OUString getName() const;
|
||||||
|
@@ -233,7 +233,9 @@ struct SourceProviderEntity {
|
|||||||
explicit SourceProviderEntity(Kind theKind): kind(theKind)
|
explicit SourceProviderEntity(Kind theKind): kind(theKind)
|
||||||
{ assert(theKind >= KIND_INTERFACE_DECL); }
|
{ 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;
|
Kind kind;
|
||||||
rtl::Reference<unoidl::Entity> entity;
|
rtl::Reference<unoidl::Entity> entity;
|
||||||
@@ -243,7 +245,10 @@ struct SourceProviderEntity {
|
|||||||
struct SourceProviderScannerData {
|
struct SourceProviderScannerData {
|
||||||
SourceProviderScannerData(
|
SourceProviderScannerData(
|
||||||
rtl::Reference<unoidl::Manager> const & theManager):
|
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()); }
|
{ assert(manager.is()); }
|
||||||
|
|
||||||
void setSource(void const * address, sal_uInt64 size) {
|
void setSource(void const * address, sal_uInt64 size) {
|
||||||
|
Reference in New Issue
Block a user