From cd2e8b42ae51b630c93c8506ae562ad5ba522ae5 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 17 May 2012 23:48:16 -0700 Subject: [PATCH] Make some more functions public, now that they're safe. --- src/SerializedObject.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/SerializedObject.h b/src/SerializedObject.h index 9a28151717..8669fb18fe 100644 --- a/src/SerializedObject.h +++ b/src/SerializedObject.h @@ -87,9 +87,6 @@ protected: boost::ptr_vector mData; std::vector mType; - static std::auto_ptr makeDefaultObject(SerializedTypeID id, const char *name); - static std::auto_ptr makeDeserializedObject(SerializedTypeID id, const char *name, - SerializerIterator&); STObject* duplicate() const { return new STObject(*this); } public: @@ -164,6 +161,10 @@ public: SerializedType* makeFieldPresent(SOE_Field field); void makeFieldAbsent(SOE_Field field); + static std::auto_ptr makeDefaultObject(SerializedTypeID id, const char *name); + static std::auto_ptr makeDeserializedObject(SerializedTypeID id, const char *name, + SerializerIterator&); + static void unitTest(); };