summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/textuno.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-05-12 17:52:22 +0200
committerEike Rathke <erack@redhat.com>2016-05-12 17:52:44 +0200
commitc19e7cf433133929c38a58f1addb1fd544ebe02d (patch)
tree81db41c8b91e550162199b8d82d0a4182ce4a8fd /sc/source/ui/unoobj/textuno.cxx
parentd7d1ce3cd89fb08b07ec87ecafba39da4751abc0 (diff)
use SAL_WARN()
Change-Id: Ic57614054a7552d778b7bcb36ba3a52865291b5c
Diffstat (limited to 'sc/source/ui/unoobj/textuno.cxx')
-rw-r--r--sc/source/ui/unoobj/textuno.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx
index f2a9ee9f802a..d5c73d99d1c5 100644
--- a/sc/source/ui/unoobj/textuno.cxx
+++ b/sc/source/ui/unoobj/textuno.cxx
@@ -19,8 +19,6 @@
#include <sal/config.h>
-#include <cstdlib>
-
#include "scitems.hxx"
#include <editeng/eeitem.hxx>
#include <svx/svdpool.hxx>
@@ -344,8 +342,9 @@ OUString SAL_CALL ScHeaderFooterTextObj::getString() throw(uno::RuntimeException
case ScHeaderFooterPart::RIGHT:
pData = rContentObj->GetRightEditObject();
break;
- default: //needed for compiler warning: possible uninitialized pointer
- for (;;) std::abort();
+ default:
+ SAL_WARN("sc.ui","unexpected enum value of ScHeaderFooterPart");
+ pData = nullptr;
}
if (pData)