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 + +#include + #include "scitems.hxx" #include #include @@ -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)