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:
Jason Felds
2015-09-16 22:29:53 -04:00
parent b87af92a6b
commit cf545a3c01
3 changed files with 23 additions and 24 deletions
+1 -1
View File
@@ -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;