From ae6c8147aa4b74320fd70b3f994227dc0e558b57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 5 Sep 2005 18:10:46 +0000 Subject: [PATCH] Code clarification. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/utilscmn.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 - -- 2.45.2