diff options
author | Eike Rathke <erack@redhat.com> | 2016-05-12 17:52:22 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-05-12 17:52:44 +0200 |
commit | c19e7cf433133929c38a58f1addb1fd544ebe02d (patch) | |
tree | 81db41c8b91e550162199b8d82d0a4182ce4a8fd /sc/source | |
parent | d7d1ce3cd89fb08b07ec87ecafba39da4751abc0 (diff) |
use SAL_WARN()
Change-Id: Ic57614054a7552d778b7bcb36ba3a52865291b5c
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/unoobj/textuno.cxx | 7 |
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) |