diff options
-rw-r--r-- | lotuswordpro/source/filter/lwpuidoc.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lotuswordpro/source/filter/lwpuidoc.cxx b/lotuswordpro/source/filter/lwpuidoc.cxx index 1f45c1da0544..8e26b0daea37 100644 --- a/lotuswordpro/source/filter/lwpuidoc.cxx +++ b/lotuswordpro/source/filter/lwpuidoc.cxx @@ -92,11 +92,9 @@ void LwpNamedProperties::Read(LwpObjectStream *pStrm) { sal_uInt16 numEntries = pStrm->QuickReaduInt16(); - for (sal_uInt16 k = 0 ; k < numEntries; k++) - { - assert(false); - // TODO: Read each NamedProperties - } + if (numEntries) + throw std::runtime_error("TODO: Read each NamedProperties"); + pStrm->SkipExtra(); } /** @@ -121,8 +119,8 @@ void LwpMergeOptions::Read(LwpObjectStream *pStrm) m_nType = pStrm->QuickReaduInt16(); //Does not process m_nType here. Assume m_nType is 0. - // TODO: Read the CMergeDataFile - assert(m_nType==0); + if (m_nType != 0) + throw std::runtime_error("TODO: Read the CMergeDataFile"); m_nLastActionFlag = pStrm->QuickReaduInt16(); pStrm->SkipExtra(); |