fix VC6 clear() hack
This commit is contained in:
@@ -544,7 +544,7 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* VC6 string is missing clear(). */
|
/* VC6 string is missing clear(). */
|
||||||
#if defined(_MSC_VER) && ( _MSC_VER < 1200 )
|
#if defined(_MSC_VER) && ( _MSC_VER < 1300 ) /* VC6, not VC7 */
|
||||||
void clear()
|
void clear()
|
||||||
{
|
{
|
||||||
this->erase();
|
this->erase();
|
||||||
|
|||||||
@@ -674,7 +674,7 @@ void NetworkPostData::HttpThread()
|
|||||||
RString sResult;
|
RString sResult;
|
||||||
while( m_pStream->GetState() == NetworkStream::STATE_CONNECTED )
|
while( m_pStream->GetState() == NetworkStream::STATE_CONNECTED )
|
||||||
{
|
{
|
||||||
sBuf.erase( sBuf.begin(), sBuf.end() );
|
sBuf.clear();
|
||||||
void *p = sBuf.GetBuffer( 1024 );
|
void *p = sBuf.GetBuffer( 1024 );
|
||||||
int iGot = m_pStream->Read( p, 1024 );
|
int iGot = m_pStream->Read( p, 1024 );
|
||||||
if( iGot >= 0 )
|
if( iGot >= 0 )
|
||||||
@@ -713,7 +713,7 @@ void NetworkPostData::Start( const RString &sHost, int iPort, const RString &sPa
|
|||||||
m_sHost = sHost;
|
m_sHost = sHost;
|
||||||
m_iPort = iPort;
|
m_iPort = iPort;
|
||||||
m_sPath = sPath;
|
m_sPath = sPath;
|
||||||
m_sStatus.erase( m_sStatus.begin(), m_sStatus.end() );
|
m_sStatus.clear();
|
||||||
m_fProgress = 0;
|
m_fProgress = 0;
|
||||||
|
|
||||||
m_Thread.SetName( "HTTP thread" );
|
m_Thread.SetName( "HTTP thread" );
|
||||||
|
|||||||
Reference in New Issue
Block a user