From: Francesco Montorsi Date: Sun, 1 Feb 2009 19:56:06 +0000 (+0000) Subject: remove implementations from interface headers X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/413eac73fd4e207a46f94821dd47feac3da7c287?ds=inline remove implementations from interface headers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/interface/wx/persist.h b/interface/wx/persist.h index beae4c785f..8c31fb2976 100644 --- a/interface/wx/persist.h +++ b/interface/wx/persist.h @@ -62,10 +62,7 @@ public: defined for the objects of this class. */ template - wxPersistentObject *Register(T *obj) - { - return Register(obj, wxCreatePersistentObject(obj)); - } + wxPersistentObject *Register(T *obj); /** Register an object with the manager. @@ -117,7 +114,7 @@ public: @see SaveAndUnregister() */ void Save(void *obj); - + /** Restore the object properties previously saved by Save(). @@ -233,10 +230,7 @@ protected: @true if the value was saved or @false if an error occurred. */ template - bool SaveValue(const wxString& name, T value) const - { - return wxPersistenceManager::Get().SaveValue(*this, name, value); - } + bool SaveValue(const wxString& name, T value) const; /** Restore the value saved by Save(). @@ -251,10 +245,7 @@ protected: found or an error occurred. */ template - bool RestoreValue(const wxString& name, T *value) - { - return wxPersistenceManager::Get().RestoreValue(*this, name, value); - } + bool RestoreValue(const wxString& name, T *value); }; /** diff --git a/interface/wx/ptr_scpd.h b/interface/wx/ptr_scpd.h index b551c81cb0..7e0caa3a69 100644 --- a/interface/wx/ptr_scpd.h +++ b/interface/wx/ptr_scpd.h @@ -431,13 +431,8 @@ public: The returned pointer may be @NULL. It must not be deleted by the caller, call @c reset(NULL) instead. */ - T *get() const { return m_array; } + T *get() const; /// Swaps the contents of this array with another one. - void swap(wxScopedArray &other) - { - T * const tmp = other.m_array; - other.m_array = m_array; - m_array = tmp; - } + void swap(wxScopedArray &other); }; diff --git a/interface/wx/string.h b/interface/wx/string.h index 6cb0dc695d..e04c1f7b51 100644 --- a/interface/wx/string.h +++ b/interface/wx/string.h @@ -1550,14 +1550,6 @@ public: characters of the @a val string. */ template - inline bool wxStringCheck(const wxString& val) - { - for ( wxString::const_iterator i = val.begin(); - i != val.end(); - ++i ) - if (T(*i) == 0) - return false; - return true; - } + inline bool wxStringCheck(const wxString& val); //@} diff --git a/interface/wx/tooltip.h b/interface/wx/tooltip.h index cb4abd73ae..ea6f30d206 100644 --- a/interface/wx/tooltip.h +++ b/interface/wx/tooltip.h @@ -72,7 +72,7 @@ public: @note Currently this function is wxMSW-only. */ - static void SetMaxWidth(int width) { ms_maxWidth = width; } + static void SetMaxWidth(int width); /** Set the delay between subsequent tooltips to appear.