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

Michael Stahl mstahl at redhat.com
Thu Nov 13 12:07:23 PST 2014


 sw/source/uibase/config/StoredChapterNumbering.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a378fe877302a06141fd517c35a738ccd0967874
Author: Michael Stahl <mstahl at redhat.com>
Date:   Thu Nov 13 20:50:27 2014 +0100

    coverity#1251590: fascinating what sort of nonsense works by accident
    
    Change-Id: I23704604ed2d041075caff4254074e83ae229402

diff --git a/sw/source/uibase/config/StoredChapterNumbering.cxx b/sw/source/uibase/config/StoredChapterNumbering.cxx
index eb8ae2f..646676c 100644
--- a/sw/source/uibase/config/StoredChapterNumbering.cxx
+++ b/sw/source/uibase/config/StoredChapterNumbering.cxx
@@ -371,7 +371,7 @@ public:
         }
         else if (XML_NAMESPACE_STYLE == nPrefix && IsXMLToken(rLocalName, XML_STYLE))
         {
-            new StoredChapterNumberingDummyStyleContext(
+            return new StoredChapterNumberingDummyStyleContext(
                     GetImport(), nPrefix, rLocalName, xAttrList);
         }
 


More information about the Libreoffice-commits mailing list