diff options
author | Eike Rathke <erack@redhat.com> | 2016-05-12 17:31:18 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-05-12 17:35:07 +0200 |
commit | d7d1ce3cd89fb08b07ec87ecafba39da4751abc0 (patch) | |
tree | d32c59abf447deb92b271f9f3e6a9df867086af5 /sc | |
parent | 64fa77675d9522988827fc4c263637dd6ffa9822 (diff) |
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
Diffstat (limited to 'sc')
-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; } |