remove implementations from interface headers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-02-01 19:56:06 +00:00
parent 03faec761d
commit 413eac73fd
4 changed files with 8 additions and 30 deletions

View File

@@ -62,10 +62,7 @@ public:
defined for the objects of this class. defined for the objects of this class.
*/ */
template <class T> template <class T>
wxPersistentObject *Register(T *obj) wxPersistentObject *Register(T *obj);
{
return Register(obj, wxCreatePersistentObject(obj));
}
/** /**
Register an object with the manager. Register an object with the manager.
@@ -233,10 +230,7 @@ protected:
@true if the value was saved or @false if an error occurred. @true if the value was saved or @false if an error occurred.
*/ */
template <typename T> template <typename T>
bool SaveValue(const wxString& name, T value) const bool SaveValue(const wxString& name, T value) const;
{
return wxPersistenceManager::Get().SaveValue(*this, name, value);
}
/** /**
Restore the value saved by Save(). Restore the value saved by Save().
@@ -251,10 +245,7 @@ protected:
found or an error occurred. found or an error occurred.
*/ */
template <typename T> template <typename T>
bool RestoreValue(const wxString& name, T *value) bool RestoreValue(const wxString& name, T *value);
{
return wxPersistenceManager::Get().RestoreValue(*this, name, value);
}
}; };
/** /**

View File

@@ -431,13 +431,8 @@ public:
The returned pointer may be @NULL. It must not be deleted by the The returned pointer may be @NULL. It must not be deleted by the
caller, call @c reset(NULL) instead. caller, call @c reset(NULL) instead.
*/ */
T *get() const { return m_array; } T *get() const;
/// Swaps the contents of this array with another one. /// Swaps the contents of this array with another one.
void swap(wxScopedArray &other) void swap(wxScopedArray &other);
{
T * const tmp = other.m_array;
other.m_array = m_array;
m_array = tmp;
}
}; };

View File

@@ -1550,14 +1550,6 @@ public:
characters of the @a val string. characters of the @a val string.
*/ */
template<bool (T)(const wxUniChar& c)> template<bool (T)(const wxUniChar& c)>
inline bool wxStringCheck(const wxString& val) 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;
}
//@} //@}

View File

@@ -72,7 +72,7 @@ public:
@note Currently this function is wxMSW-only. @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. Set the delay between subsequent tooltips to appear.