Commit 82c3e14f authored by Ivan.Shulga's avatar Ivan.Shulga Committed by Alexander Trofimov

changed CSimpleArray to std::vector

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58022 954022d7-b5bf-4e40-9824-e11837661b57
parent 8977d6ff
......@@ -16,7 +16,7 @@ namespace OOX
m_oLink = oOther.m_oLink;
m_oExtLst = oOther.m_oExtLst;
for ( int nIndex = 0; nIndex < oOther.m_arrEffects.GetSize(); nIndex++ )
for ( int nIndex = 0; nIndex < oOther.m_arrEffects.size(); nIndex++ )
{
OOX::EElementType eType = oOther.m_arrEffects[nIndex]->getType();
......@@ -44,7 +44,7 @@ namespace OOX
}
if ( NULL != pEffect )
m_arrEffects.Add( pEffect );
m_arrEffects.push_back( pEffect );
}
}
void CBlip::fromXML(XmlUtils::CXmlNode& oNode)
......@@ -156,7 +156,7 @@ namespace OOX
}
if ( NULL != pEffect )
m_arrEffects.Add( pEffect );
m_arrEffects.push_back( pEffect );
}
}
CString CBlip::toXML() const
......@@ -172,7 +172,7 @@ namespace OOX
sResult += _T(">");
for ( int nIndex = 0; nIndex < m_arrEffects.GetSize(); nIndex++ )
for ( int nIndex = 0; nIndex < m_arrEffects.size(); nIndex++ )
sResult += m_arrEffects[nIndex]->toXML();
if ( m_oExtLst.IsInit() )
......@@ -284,7 +284,7 @@ namespace OOX
m_sName = oOther.m_sName;
m_oType = oOther.m_oType;
for ( int nIndex = 0; nIndex < oOther.m_arrEffects.GetSize(); nIndex++ )
for ( int nIndex = 0; nIndex < oOther.m_arrEffects.size(); nIndex++ )
{
OOX::EElementType eType = oOther.m_arrEffects[nIndex]->getType();
......@@ -325,7 +325,7 @@ namespace OOX
}
if ( NULL != pEffect )
m_arrEffects.Add( pEffect );
m_arrEffects.push_back( pEffect );
}
}
void CEffectContainer::fromXML(XmlUtils::CXmlNode& oNode)
......@@ -504,7 +504,7 @@ namespace OOX
}
if ( NULL != pEffect )
m_arrEffects.Add( pEffect );
m_arrEffects.push_back( pEffect );
}
}
......@@ -528,7 +528,7 @@ namespace OOX
sResult += _T("type=\"") + m_oType.ToString() + _T("\">");
for ( int nIndex = 0; nIndex < m_arrEffects.GetSize(); nIndex++ )
for ( int nIndex = 0; nIndex < m_arrEffects.size(); nIndex++ )
sResult += m_arrEffects[nIndex]->toXML();
if ( et_a_cont == m_eType )
......
......@@ -80,7 +80,7 @@ namespace OOX
void Clear()
{
for ( int nIndex = 0; nIndex < m_arrEffects.GetSize(); nIndex++ )
for ( int nIndex = 0; nIndex < m_arrEffects.size(); nIndex++ )
{
if ( m_arrEffects[nIndex] )
delete m_arrEffects[nIndex];
......@@ -88,7 +88,7 @@ namespace OOX
m_arrEffects[nIndex] = NULL;
}
m_arrEffects.RemoveAll();
m_arrEffects.clear();
}
public:
......@@ -101,7 +101,7 @@ namespace OOX
SimpleTypes::CEffectContainerType<> m_oType;
// Childs
CSimpleArray<WritingElement*> m_arrEffects;
std::vector<WritingElement*> m_arrEffects;
};
......@@ -784,7 +784,7 @@ namespace OOX
void Clear()
{
for ( int nIndex = 0; nIndex < m_arrEffects.GetSize(); nIndex++ )
for ( int nIndex = 0; nIndex < m_arrEffects.size(); nIndex++ )
{
if ( m_arrEffects[nIndex] )
delete m_arrEffects[nIndex];
......@@ -792,7 +792,7 @@ namespace OOX
m_arrEffects[nIndex] = NULL;
}
m_arrEffects.RemoveAll();
m_arrEffects.clear();
}
public:
......@@ -804,7 +804,7 @@ namespace OOX
// Childs
nullable<OOX::Drawing::COfficeArtExtensionList> m_oExtLst;
CSimpleArray<WritingElement*> m_arrEffects;
std::vector<WritingElement*> m_arrEffects;
};
//-----------------------------------------------------------------------
// BlipFillProperties 20.1.8.14 (Part 1)
......@@ -1202,7 +1202,7 @@ namespace OOX
if ( _T("a:ds") == sName )
{
CDashStop oDs = oReader;
m_arrDs.Add( oDs );
m_arrDs.push_back( oDs );
}
}
}
......@@ -1211,7 +1211,7 @@ namespace OOX
{
CString sResult = _T("<a:custDash>");
for ( int nIndex = 0; nIndex < m_arrDs.GetSize(); nIndex++ )
for ( int nIndex = 0; nIndex < m_arrDs.size(); nIndex++ )
sResult += m_arrDs[nIndex].toXML();
sResult += _T("</a:custDash>");
......@@ -1226,7 +1226,7 @@ namespace OOX
public:
// Childs
CSimpleArray<CDashStop> m_arrDs;
std::vector<CDashStop> m_arrDs;
};
//-----------------------------------------------------------------------
......@@ -1835,7 +1835,7 @@ namespace OOX
if ( _T("a:gs") == sName )
{
CGradientStop oGs = oReader;
m_arrGs.Add( oGs );
m_arrGs.push_back( oGs );
}
}
}
......@@ -1844,7 +1844,7 @@ namespace OOX
{
CString sResult = _T("<a:gsLst>");
for ( int nIndex = 0; nIndex < m_arrGs.GetSize(); nIndex++ )
for ( int nIndex = 0; nIndex < m_arrGs.size(); nIndex++ )
sResult += m_arrGs[nIndex].toXML();
sResult += _T("</a:gsLst>");
......@@ -1859,7 +1859,7 @@ namespace OOX
public:
// Childs
CSimpleArray<CGradientStop> m_arrGs;
std::vector<CGradientStop> m_arrGs;
};
//-----------------------------------------------------------------------
......
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