Kaydet (Commit) 58fa7827 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

these types come directly from the file itself

so while invalid they can appear here

Change-Id: I36d43958bf578e677f216aea09400ab764ed82ae
(cherry picked from commit aad27e89)
üst fff8a0c6
...@@ -135,7 +135,7 @@ rtl::Reference<LwpObject> LwpObjectFactory::CreateObject(sal_uInt32 type, LwpObj ...@@ -135,7 +135,7 @@ rtl::Reference<LwpObject> LwpObjectFactory::CreateObject(sal_uInt32 type, LwpObj
{ {
rtl::Reference<LwpObject> newObj; rtl::Reference<LwpObject> newObj;
m_nNumObjs++; m_nNumObjs++;
assert(type<300); SAL_WARN_IF(type>=300, "lwp", "invalid type: " << type);
switch(type) switch(type)
{ {
case VO_DOCUMENT: case VO_DOCUMENT:
...@@ -666,7 +666,6 @@ rtl::Reference<LwpObject> LwpObjectFactory::CreateObject(sal_uInt32 type, LwpObj ...@@ -666,7 +666,6 @@ rtl::Reference<LwpObject> LwpObjectFactory::CreateObject(sal_uInt32 type, LwpObj
default: default:
{ {
//Unknown object type //Unknown object type
assert(false);
newObj = NULL; newObj = NULL;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment