[Libreoffice-commits] core.git: 2 commits - sw/source xmlsecurity/source

Caolán McNamara caolanm at redhat.com
Thu Oct 3 05:37:18 PDT 2013


 sw/source/ui/shells/txtattr.cxx                             |    1 +
 xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx |    6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit a8526ce7ead7738ff4ad981c31ca1a4c5b51e5f6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Oct 3 13:35:30 2013 +0100

    CID#1027709 this fall-through doesn't make sense
    
    though it appears harmless given the nSlot = 0
    
    Change-Id: Ia8e6efa8c8ae3ef9d5320ac63bb548e69ad8cce1

diff --git a/sw/source/ui/shells/txtattr.cxx b/sw/source/ui/shells/txtattr.cxx
index 45f8e37..d5b8e3d 100644
--- a/sw/source/ui/shells/txtattr.cxx
+++ b/sw/source/ui/shells/txtattr.cxx
@@ -652,6 +652,7 @@ void SwTextShell::GetAttrState(SfxItemSet &rSet)
                     rSet.InvalidateItem(nSlot);
                 nSlot = 0;
             }
+            break;
 
             case SID_ATTR_PARA_LEFT_TO_RIGHT :
             case SID_ATTR_PARA_RIGHT_TO_LEFT :
commit 094f00651aacac27cffd6839bb4809664a85dabc
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Oct 3 13:30:13 2013 +0100

    CID#708741 uninitialized members
    
    Change-Id: I15475d560e889b0f0fc91d96cfa6ae97e81a41b5

diff --git a/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx b/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx
index 853bbc6..ee3eb88 100644
--- a/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx
+++ b/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx
@@ -55,7 +55,11 @@ namespace cssxw = com::sun::star::xml::wrapper;
 #define NODE_NOTREMOVED 1
 #define NODE_STOPED     2
 
-XMLDocumentWrapper_XmlSecImpl::XMLDocumentWrapper_XmlSecImpl( )
+XMLDocumentWrapper_XmlSecImpl::XMLDocumentWrapper_XmlSecImpl()
+    : m_nCurrentPosition(0)
+    , m_pStopAtNode(0)
+    , m_pCurrentReservedNode(0)
+    , m_nReservedNodeIndex(0)
 {
     saxHelper.startDocument();
     m_pDocument = saxHelper.getDocument();


More information about the Libreoffice-commits mailing list