Use wxStringBuffer[Length] instead of explicit calls to
wxString::get/UngetWriteBuffer. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -965,8 +965,7 @@ static wxString DDEStringFromAtom(HSZ hsz)
|
||||
static const size_t len = 256;
|
||||
|
||||
wxString s;
|
||||
(void)DdeQueryString(DDEIdInst, hsz, s.GetWriteBuf(len), len, DDE_CP);
|
||||
s.UngetWriteBuf();
|
||||
(void)DdeQueryString(DDEIdInst, hsz, wxStringBuffer(s, len), len, DDE_CP);
|
||||
|
||||
return s;
|
||||
}
|
||||
|
Reference in New Issue
Block a user