fix VC6 clear() hack

This commit is contained in:
Chris Danford
2006-02-15 04:10:46 +00:00
parent 53e0ea8f24
commit 79b21dcce3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -544,7 +544,7 @@ public:
#endif
/* VC6 string is missing clear(). */
#if defined(_MSC_VER) && ( _MSC_VER < 1200 )
#if defined(_MSC_VER) && ( _MSC_VER < 1300 ) /* VC6, not VC7 */
void clear()
{
this->erase();
@@ -674,7 +674,7 @@ void NetworkPostData::HttpThread()
RString sResult;
while( m_pStream->GetState() == NetworkStream::STATE_CONNECTED )
{
sBuf.erase( sBuf.begin(), sBuf.end() );
sBuf.clear();
void *p = sBuf.GetBuffer( 1024 );
int iGot = m_pStream->Read( p, 1024 );
if( iGot >= 0 )
@@ -713,7 +713,7 @@ void NetworkPostData::Start( const RString &sHost, int iPort, const RString &sPa
m_sHost = sHost;
m_iPort = iPort;
m_sPath = sPath;
m_sStatus.erase( m_sStatus.begin(), m_sStatus.end() );
m_sStatus.clear();
m_fProgress = 0;
m_Thread.SetName( "HTTP thread" );