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:
Eike Rathke
2016-05-12 17:31:18 +02:00
parent 64fa77675d
commit d7d1ce3cd8

View File

@@ -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;
}