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

Stephan Bergmann sbergman at redhat.com
Mon Sep 7 08:10:18 PDT 2015


 sw/source/uibase/app/docstyle.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 0ed64030f17849ea943800343003c5ec3f4f1388
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Sep 7 17:09:55 2015 +0200

    -Werror,-Wreturn-type
    
    Change-Id: I843b2cb12783549033fc81f82751704859139960

diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index 6aa4b79..0efcd53 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -17,6 +17,10 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
+#include <sal/config.h>
+
+#include <cstdlib>
+
 #include <svl/smplhint.hxx>
 #include <hintids.hxx>
 #include <svl/itemiter.hxx>
@@ -1213,7 +1217,7 @@ std::unique_ptr<SfxItemSet> SwDocStyleSheet::GetItemSetForPreview()
             case SFX_STYLE_FAMILY_FRAME:
                 return lcl_SwFormatToFlatItemSet(pFrameFormat);
             default:
-                assert(false);
+                std::abort();
         }
     }
 }


More information about the Libreoffice-commits mailing list