diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-01 13:26:07 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-01 15:29:56 -0600 |
commit | 5323a5a587f5b9ac0165f0023192a368383c420f (patch) | |
tree | e88e9c4e121717d372e1ada27640e2f3cbff428d | |
parent | 9e015c70cd3c84c07d23a7111917b8ba5c010e17 (diff) |
coverity#707692-93 : Uninitialized scalar field
Change-Id: I72f1e29ef4f5e8af1e3bd300bc2604396080912c
-rw-r--r-- | connectivity/source/drivers/dbase/DTable.cxx | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx index dc0ba14ed1dc..d38b1519c44c 100644 --- a/connectivity/source/drivers/dbase/DTable.cxx +++ b/connectivity/source/drivers/dbase/DTable.cxx @@ -440,35 +440,34 @@ void ODbaseTable::fillColumns() OSL_ENSURE(i,"No columns in table!"); } // ------------------------------------------------------------------------- -ODbaseTable::ODbaseTable(sdbcx::OCollection* _pTables,ODbaseConnection* _pConnection) - :ODbaseTable_BASE(_pTables,_pConnection) - ,m_pMemoStream(NULL) - ,m_bWriteableMemo(sal_False) +ODbaseTable::ODbaseTable(sdbcx::OCollection* _pTables, ODbaseConnection* _pConnection) + : ODbaseTable_BASE(_pTables,_pConnection) + , m_pMemoStream(NULL) + , m_bWriteableMemo(sal_False) { SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::ODbaseTable" ); // initialize the header - m_aHeader.db_typ = dBaseIII; - m_aHeader.db_anz = 0; - m_aHeader.db_kopf = 0; - m_aHeader.db_slng = 0; + m_aHeader = {}; + m_aHeader.db_typ = dBaseIII; m_eEncoding = getConnection()->getTextEncoding(); } // ------------------------------------------------------------------------- -ODbaseTable::ODbaseTable(sdbcx::OCollection* _pTables,ODbaseConnection* _pConnection, - const OUString& _Name, - const OUString& _Type, - const OUString& _Description , - const OUString& _SchemaName, - const OUString& _CatalogName - ) : ODbaseTable_BASE(_pTables,_pConnection,_Name, - _Type, - _Description, - _SchemaName, - _CatalogName) - ,m_pMemoStream(NULL) - ,m_bWriteableMemo(sal_False) +ODbaseTable::ODbaseTable(sdbcx::OCollection* _pTables, ODbaseConnection* _pConnection, + const OUString& _Name, + const OUString& _Type, + const OUString& _Description , + const OUString& _SchemaName, + const OUString& _CatalogName ) + : ODbaseTable_BASE(_pTables,_pConnection,_Name, + _Type, + _Description, + _SchemaName, + _CatalogName) + , m_pMemoStream(NULL) + , m_bWriteableMemo(sal_False) { SAL_INFO( "connectivity.drivers", "dbase Ocke.Janssen@sun.com ODbaseTable::ODbaseTable" ); + m_aHeader = {}; m_eEncoding = getConnection()->getTextEncoding(); } |