summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-12 14:38:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-12 14:38:56 +0200
commit3d1b29a7da5c95de7dc9456d05e46bf563eab9c9 (patch)
tree2e8fd784168a534176b4b15924b442f7c03db85e /sc
parent11b3262dd116118d46b0fbfea5f4dcea1de755c9 (diff)
Silence -Werror,-Wimplicit-fallthrough under NDEBUG
Change-Id: Iea1951275966aa9e428505eba3b8133bc10b90f5
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/textuno.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx
index bcf96185422c..f2a9ee9f802a 100644
--- a/sc/source/ui/unoobj/textuno.cxx
+++ b/sc/source/ui/unoobj/textuno.cxx
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <cstdlib>
+
#include "scitems.hxx"
#include <editeng/eeitem.hxx>
#include <svx/svdpool.hxx>
@@ -337,12 +341,11 @@ OUString SAL_CALL ScHeaderFooterTextObj::getString() throw(uno::RuntimeException
case ScHeaderFooterPart::CENTER:
pData = rContentObj->GetCenterEditObject();
break;
- default: //needed for compiler warning: possible uninitialized pointer
- assert(!"unexpected enum value of ScHeaderFooterPart");
- // fall through
case ScHeaderFooterPart::RIGHT:
pData = rContentObj->GetRightEditObject();
break;
+ default: //needed for compiler warning: possible uninitialized pointer
+ for (;;) std::abort();
}
if (pData)