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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user