]> git.saurik.com Git - wxWidgets.git/commitdiff
added an explicit accessor to query the default key value
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jan 2002 15:52:03 +0000 (15:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jan 2002 15:52:03 +0000 (15:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/registry.h
src/msw/registry.cpp

index 76980b5f649139e45aedd8066fc1c40baa24d61a..5e995ad25b8655741437a2592c2f80bcd7a713a9 100644 (file)
@@ -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);
index 34e7c891a51efc34d8acec68f80f7ce97b581c76..ca0f62ace8f3530bf512b012e3ee5a83b07f31c3 100644 (file)
@@ -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);