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