removed superfluous rId into ppt/slide/_rels

This commit is contained in:
Ivan Morozov
2021-01-27 15:30:36 +03:00
parent b4b41956b6
commit 9e8a52fac4
4 changed files with 5 additions and 7 deletions

View File

@ -459,7 +459,7 @@ void CPPTUserInfo::ReadExtenalObjects(std::wstring strFolderMem)
std::vector<CRecordExObjListContainer*> oArrayExObjects;
m_oDocument.GetRecordsByType(&oArrayExObjects, false, true);
if (0 != oArrayExObjects.size())
if (!oArrayExObjects.empty())
{
LoadExternal(oArrayExObjects[0]);
}
@ -2271,7 +2271,7 @@ void CPPTUserInfo::LoadExternal(CRecordExObjListContainer* pExObjects)
std::vector<CRecordSoundCollectionContainer*> oArrayCollection;
m_oDocument.GetRecordsByType(&oArrayCollection, false, true);
if (0 != oArrayCollection.size())
if (!oArrayCollection.empty())
{
std::vector<CRecordSoundContainer*> oArraySounds;
oArrayCollection[0]->GetRecordsByType(&oArraySounds, false);
@ -2294,8 +2294,6 @@ void CPPTUserInfo::LoadExternal(CRecordExObjListContainer* pExObjects)
oInfo.m_dwID = (_UINT32)XmlUtils::GetInteger(oArrayStrings[2]->m_strText.c_str());
oArrayData[0]->SaveToFile(oInfo.m_strFilePath);
m_oExMedia.m_arAudioCollection.push_back(oInfo);
}
}
}