]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpctrl.cpp
suppress harmless warning about possibly uninitialized variable in OpenLogFile()...
[wxWidgets.git] / src / html / helpctrl.cpp
index 28e07592b7b2fa1bad8fafcfbc2db1be91cd1372..c70f5f24aa4176e461f9519bc1dadb3244ffcc25 100644 (file)
@@ -115,12 +115,7 @@ void wxHtmlHelpController::SetTitleFormat(const wxString& title)
 // Find the top-most parent window
 wxWindow* wxHtmlHelpController::FindTopLevelWindow()
 {
-    wxWindow* parent = m_helpWindow;
-    while (parent && !parent->IsTopLevel())
-    {
-        parent = parent->GetParent();
-    }
-    return parent;
+    return wxGetTopLevelParent(m_helpWindow);
 }
 
 bool wxHtmlHelpController::AddBook(const wxFileName& book_file, bool show_wait_msg)