split wxCharTypeBuffer<T> into wxScopedCharTypeBuffer<T> and wxCharTypeBuffer<T> -- the former is for transient data with validity limited to parent's lifetime, the latter is for permanent storage of string data (bug #9638)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -438,7 +438,7 @@ inline bool wxSetEnv(const wxString& var, const char *value)
|
||||
inline bool wxSetEnv(const wxString& var, const wchar_t *value)
|
||||
{ return wxSetEnv(var, wxString(value)); }
|
||||
template<typename T>
|
||||
inline bool wxSetEnv(const wxString& var, const wxCharTypeBuffer<T>& value)
|
||||
inline bool wxSetEnv(const wxString& var, const wxScopedCharTypeBuffer<T>& value)
|
||||
{ return wxSetEnv(var, wxString(value)); }
|
||||
inline bool wxSetEnv(const wxString& var, const wxCStrData& value)
|
||||
{ return wxSetEnv(var, wxString(value)); }
|
||||
|
Reference in New Issue
Block a user