diff options
-rw-r--r-- | sc/source/ui/view/viewfun6.cxx | 8 |
1 files 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; } |