From d7d1ce3cd89fb08b07ec87ecafba39da4751abc0 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 12 May 2016 17:31:18 +0200 Subject: [PATCH] if we can't use assert() as intended then use SAL_WARN() ... even if we lose the "hit me on the head" feature. Change-Id: I7a8ea4ef25a4aa21b06fae8751e7037ff27bad8b --- sc/source/ui/view/viewfun6.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx index 51e0e8b64e63..37e2cfa550ce 100644 --- a/sc/source/ui/view/viewfun6.cxx +++ b/sc/source/ui/view/viewfun6.cxx @@ -293,9 +293,9 @@ void ScViewFunc::InsertCurrentTime(short nReqFmt, const OUString& rUndoStr) } break; default: - assert(!"unhandled current date/time request"); + SAL_WARN("sc.ui","unhandled current date/time request"); nReqFmt = css::util::NumberFormat::DATETIME; - // fallthru + SAL_FALLTHROUGH; case css::util::NumberFormat::DATETIME: { DateTime aActDateTime( DateTime::SYSTEM ); @@ -387,9 +387,9 @@ void ScViewFunc::InsertCurrentTime(short nReqFmt, const OUString& rUndoStr) } break; default: - assert(!"unhandled current date/time request"); + SAL_WARN("sc.ui","unhandled current date/time request"); nReqFmt = css::util::NumberFormat::DATETIME; - // fallthru + SAL_FALLTHROUGH; case css::util::NumberFormat::DATETIME: break; }