Kaydet (Commit) 19882e0c authored tarafından Caolán McNamara's avatar Caolán McNamara

lwp: convert hopeful asserts to exceptions

Change-Id: I3111929ea84aa8280607811c851d033156c65731
üst 7eb92eea
......@@ -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();
......
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