Remove the need for the RString buffer.
For most areas, the call to `c_str()` is plenty. For `RageUtil`, it's just a matter of new and delete.
This commit is contained in:
@@ -206,7 +206,7 @@ void FileTransfer::StartTransfer( TransferType type, const RString &sURL, const
|
||||
m_wSocket.SendData( sHeader.c_str(), sHeader.length() );
|
||||
m_wSocket.SendData( "\r\n" );
|
||||
|
||||
m_wSocket.SendData( sRequestPayload.GetBuffer(), sRequestPayload.size() );
|
||||
m_wSocket.SendData( sRequestPayload.c_str(), sRequestPayload.size() );
|
||||
|
||||
m_sStatus = "Header Sent.";
|
||||
m_wSocket.blocking = false;
|
||||
|
||||
Reference in New Issue
Block a user