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

New commits:
commit 4c2a9f46c1a7f4495c08f84a48d984364dedffa3
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Wed Sep 21 20:10:47 2022 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Sep 22 08:13:44 2022 +0200

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

diff --git a/connectivity/source/drivers/writer/WConnection.cxx 
b/connectivity/source/drivers/writer/WConnection.cxx
index 0405e93f2fa0..39724538cb3e 100644
--- a/connectivity/source/drivers/writer/WConnection.cxx
+++ b/connectivity/source/drivers/writer/WConnection.cxx
@@ -42,7 +42,6 @@ namespace connectivity::writer
 {
 OWriterConnection::OWriterConnection(ODriver* _pDriver)
     : OConnection(_pDriver)
-    , m_nDocCount(0)
 {
 }
 
diff --git a/connectivity/source/inc/writer/WConnection.hxx 
b/connectivity/source/inc/writer/WConnection.hxx
index 768518a97c93..5ae8b2818e0f 100644
--- a/connectivity/source/inc/writer/WConnection.hxx
+++ b/connectivity/source/inc/writer/WConnection.hxx
@@ -40,11 +40,11 @@ namespace connectivity::writer
 class ODriver;
 class OWriterConnection : public file::OConnection
 {
-    // the spreadsheet document:
+    // the text document:
     css::uno::Reference<css::text::XTextDocument> m_xDoc;
     OUString m_sPassword;
     OUString m_aFileName;
-    oslInterlockedCount m_nDocCount;
+    oslInterlockedCount m_nDocCount = 0;
 
     class CloseVetoButTerminateListener
         : public cppu::WeakComponentImplHelper<css::frame::XTerminateListener>

Reply via email to