sfx2/inc/guisaveas.hxx        |    1 -
 sfx2/source/doc/guisaveas.cxx |   11 +++++------
 2 files changed, 5 insertions(+), 7 deletions(-)

New commits:
commit 87e7a2f60ec823aed6738fb081ad358b5d0536e6
Author:     Caolán McNamara <[email protected]>
AuthorDate: Wed Dec 21 14:07:37 2022 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Wed Dec 21 16:18:54 2022 +0000

    cid#1517813 Uninitialized scalar field
    
    Change-Id: I119e6af448d80cf47dfe3f5bd7983ebf57221790
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144686
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sfx2/inc/guisaveas.hxx b/sfx2/inc/guisaveas.hxx
index 88a69711c8fd..7e848a579313 100644
--- a/sfx2/inc/guisaveas.hxx
+++ b/sfx2/inc/guisaveas.hxx
@@ -62,7 +62,6 @@ private:
     css::uno::Reference< css::container::XContainerQuery > const & 
GetFilterQuery();
     css::uno::Reference< css::frame::XModuleManager2 > const & 
GetModuleManager();
 
-    bool m_xDialogUsed;
     bool m_bRemote;
     bool m_bPreselectPassword;
     bool m_bDialogUsed;
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index c0f951d62206..dc32d10c103b 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -1349,14 +1349,15 @@ OUString ModelData_Impl::GetRecommendedName( const 
OUString& aSuggestedName, con
     return aRecommendedName;
 }
 
-
-
-
 SfxStoringHelper::SfxStoringHelper()
+    : m_bRemote(false)
+    , m_bPreselectPassword(false)
+    , m_bDialogUsed(false)
+    , m_bSetStandardName(false)
+    , m_nStoreMode(0)
 {
 }
 
-
 uno::Reference< container::XNameAccess > const & 
SfxStoringHelper::GetFilterConfiguration()
 {
     if ( !m_xFilterCFG.is() )
@@ -1368,7 +1369,6 @@ uno::Reference< container::XNameAccess > const & 
SfxStoringHelper::GetFilterConf
     return m_xFilterCFG;
 }
 
-
 uno::Reference< container::XContainerQuery > const & 
SfxStoringHelper::GetFilterQuery()
 {
     if ( !m_xFilterQuery.is() )
@@ -1379,7 +1379,6 @@ uno::Reference< container::XContainerQuery > const & 
SfxStoringHelper::GetFilter
     return m_xFilterQuery;
 }
 
-
 uno::Reference< css::frame::XModuleManager2 > const & 
SfxStoringHelper::GetModuleManager()
 {
     if ( !m_xModuleManager.is() )

Reply via email to