replaced wxStream::GetSize() with GetLength() (still keep the former but it will be deprecated) (second part of patch 1063498)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -69,7 +69,7 @@ public:
|
||||
class wxPyCBInputStream : public wxInputStream {
|
||||
public:
|
||||
~wxPyCBInputStream();
|
||||
virtual size_t GetSize() const;
|
||||
virtual wxFileOffset GetLength() const;
|
||||
|
||||
// factory function
|
||||
static wxPyCBInputStream* create(PyObject *py, bool block=true);
|
||||
|
@@ -1385,7 +1385,7 @@ PyObject* wxPyCBInputStream::getMethod(PyObject* py, char* name) {
|
||||
}
|
||||
|
||||
|
||||
size_t wxPyCBInputStream::GetSize() const {
|
||||
wxFileOffset wxPyCBInputStream::GetLength() const {
|
||||
wxPyCBInputStream* self = (wxPyCBInputStream*)this; // cast off const
|
||||
if (m_seek && m_tell) {
|
||||
wxFileOffset temp = self->OnSysTell();
|
||||
@@ -1394,7 +1394,7 @@ size_t wxPyCBInputStream::GetSize() const {
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
return wxInvalidOffset;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user