From: Włodzimierz Skiba Date: Mon, 5 Sep 2005 18:10:46 +0000 (+0000) Subject: Code clarification. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ae6c8147aa4b74320fd70b3f994227dc0e558b57 Code clarification. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index eec174a934..2128a5cd4c 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -553,12 +553,13 @@ bool wxLaunchDefaultBrowser(const wxString& url) wxRegKey keyDDE(key, wxT("DDEExec")); if ( keyDDE.Exists() ) { - wxString ddeTopic = wxRegKey(keyDDE, wxT("topic")); + wxRegKey keyTopic(keyDDE, wxT("topic")); + wxString ddeTopic = keyTopic.QueryDefaultValue(); // we only know the syntax of WWW_OpenURL DDE request if ( ddeTopic == wxT("WWW_OpenURL") ) { - wxString ddeCmd = keyDDE; + wxString ddeCmd = keyDDE.QueryDefaultValue(); // this is a bit naive but should work as -1 can't appear // elsewhere in the DDE topic, normally @@ -1155,4 +1156,3 @@ bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) ) #endif // !wxGTK #endif // wxUSE_GUI -