added an explicit accessor to query the default key value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -168,8 +168,11 @@ public:
|
||||
wxRegKey& operator=(long lValue)
|
||||
{ SetValue(NULL, lValue); return *this; }
|
||||
|
||||
// conversion operators query the default value of the key
|
||||
operator wxString() const;
|
||||
// query the default value of the key: implicitly or explicitly
|
||||
wxString QueryDefaultValue() const;
|
||||
operator wxString() const { return QueryDefaultValue(); }
|
||||
|
||||
// named values
|
||||
|
||||
// set the string value
|
||||
bool SetValue(const wxChar *szValue, const wxString& strValue);
|
||||
|
@@ -930,7 +930,7 @@ bool wxRegKey::SetValue(const wxChar *szValue, const wxString& strValue)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
wxRegKey::operator wxString() const
|
||||
wxString wxRegKey::QueryDefaultValue() const
|
||||
{
|
||||
wxString str;
|
||||
QueryValue(NULL, str);
|
||||
|
Reference in New Issue
Block a user