* Bug fixes

* Changed wxObjectOutputStream::AddChildren() to AddChild()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
1998-07-27 17:08:49 +00:00
parent 0757d27c1e
commit 1eac776c03
7 changed files with 8 additions and 7 deletions

View File

@@ -24,9 +24,6 @@
// constants
// ----------------------------------------------------------------------------
// error return value for Seek() functions
const off_t ofsInvalid = (off_t)-1;
// we redefine these constants here because S_IREAD &c are _not_ standard
// however, we do assume that the values correspond to the Unix umask bits
#define wxS_IRUSR 00400
@@ -118,7 +115,7 @@ public:
bool Error() const { return m_error; }
// dtor closes the file if opened
~wxFile();
virtual ~wxFile(); // Temporally virtual because of wxFileStream: I'll change back in a near future.
private:
// copy ctor and assignment operator are private because

View File

@@ -33,7 +33,7 @@ class wxObjectOutputStream : public wxFilterOutputStream {
public:
wxObjectOutputStream(wxOutputStream& s);
void AddChildren(wxObject *obj);
void AddChild(wxObject *obj);
bool SaveObject(wxObject& obj);
bool FirstStage() const { return m_stage == 0; }

View File

@@ -56,6 +56,8 @@ LIB_CPP_SRC=\
common/time.cpp \
common/timercmn.cpp \
common/utilscmn.cpp \
common/wincmn.cpp \
common/framecmn.cpp \
common/stream.cpp \
common/datstrm.cpp \
common/fstream.cpp \

View File

@@ -48,7 +48,7 @@ void wxObjectOutputStream::WriteObjectDef(wxObjectStreamInfo& info)
data_s.Write8(info.children.Number());
}
void wxObjectOutputStream::AddChildren(wxObject *obj)
void wxObjectOutputStream::AddChild(wxObject *obj)
{
wxObjectStreamInfo *info;

View File

@@ -17,7 +17,7 @@
#include <wx/stream.h>
#include <wx/zstream.h>
#include <wx/utils.h>
#include "../zlib/zlib.h"
#include "zlib.h"
#ifdef __BORLANDC__
#pragma hdrstop

View File

@@ -95,6 +95,7 @@ $(TOOLKIT_DEF) \
-I. \
-I.. \
-I$(WXBASEDIR)/include \
-I$(WXBASEDIR)/src/zlib \
$(GUI_TK_INCLUDE) \
$(OPENGL_INCLUDE) \
$(X_CFLAGS)

View File

@@ -95,6 +95,7 @@ $(TOOLKIT_DEF) \
-I. \
-I.. \
-I$(WXBASEDIR)/include \
-I$(WXBASEDIR)/src/zlib \
$(GUI_TK_INCLUDE) \
$(OPENGL_INCLUDE) \
$(X_CFLAGS)