connectivity/source/drivers/writer/WTable.cxx |    3 ---
 connectivity/source/inc/writer/WTable.hxx     |    6 +++---
 2 files changed, 3 insertions(+), 6 deletions(-)

New commits:
commit 50e743f210f35178b8c21628b023d50bf03e54f9
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Wed Aug 31 20:03:50 2022 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Sep 1 08:34:24 2022 +0200

    connectivity: use default member initializers in OWriterTable
    
    It's less code and does the same.
    
    Change-Id: I2469868a9fc97f4a9e6a89d53f50686ab89177ac
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139130
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/connectivity/source/drivers/writer/WTable.cxx 
b/connectivity/source/drivers/writer/WTable.cxx
index 42b65173e09c..555cdd8dd0c4 100644
--- a/connectivity/source/drivers/writer/WTable.cxx
+++ b/connectivity/source/drivers/writer/WTable.cxx
@@ -171,9 +171,6 @@ OWriterTable::OWriterTable(sdbcx::OCollection* _pTables, 
OWriterConnection* _pCo
     : OWriterTable_BASE(_pTables, _pConnection, Name, Type, OUString() 
/*Description*/,
                         OUString() /*SchemaName*/, OUString() /*CatalogName*/)
     , m_pWriterConnection(_pConnection)
-    , m_nStartCol(0)
-    , m_nDataCols(0)
-    , m_bHasHeaders(false)
 {
 }
 
diff --git a/connectivity/source/inc/writer/WTable.hxx 
b/connectivity/source/inc/writer/WTable.hxx
index 90cdc2494411..38add348d242 100644
--- a/connectivity/source/inc/writer/WTable.hxx
+++ b/connectivity/source/inc/writer/WTable.hxx
@@ -40,9 +40,9 @@ class OWriterTable : public OWriterTable_BASE
 private:
     css::uno::Reference<css::text::XTextTable> m_xTable;
     OWriterConnection* m_pWriterConnection;
-    sal_Int32 m_nStartCol;
-    sal_Int32 m_nDataCols;
-    bool m_bHasHeaders;
+    sal_Int32 m_nStartCol = 0;
+    sal_Int32 m_nDataCols = 0;
+    bool m_bHasHeaders = false;
 
     void fillColumns();
 

Reply via email to