Return the old file descriptor/pointer from wx(F)File::Detach().

Make Detach() more convenient to use.

Closes #15494.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-09-12 20:49:10 +00:00
parent 2cedd586b5
commit 37961915e7
5 changed files with 11 additions and 4 deletions

View File

@@ -295,8 +295,11 @@ public:
Get back a file descriptor from wxFile object - the caller is responsible for
closing the file if this descriptor is opened.
IsOpened() will return @false after call to Detach().
@return The file descriptor (this is new since wxWidgets 3.0.0, in the
previous versions this method didn't return anything).
*/
void Detach();
int Detach();
/**
Returns @true if the end of the file has been reached.