]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/helpview/src/helpview.cpp
reverted last (accidental) change
[wxWidgets.git] / utils / helpview / src / helpview.cpp
index 60b0f7e78f667510918c7488b03ae08801865ece..07f0a70f91540fa449df7a7251f22a055ee38d91 100644 (file)
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
-#pragma implementation "help.cpp"
-#endif
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
@@ -48,7 +44,7 @@ IMPLEMENT_APP(hvApp)
 
 hvApp::hvApp()
 {
-#if hvUSE_IPC
+#if wxUSE_IPC
     m_server = NULL;
 #endif
 }
@@ -68,14 +64,15 @@ bool hvApp::OnInit()
 
     int istyle = wxHF_DEFAULT_STYLE;
 
-    wxString service, windowName, book[10], titleFormat, argStr;
+    wxString service, windowName, titleFormat, argStr;
+    wxString book[10];
     int bookCount = 0;
     int i;
     bool hasService = false;
     bool hasWindowName = false;
     bool createServer = false;
 
-#if hvUSE_IPC
+#if wxUSE_IPC
     m_server = NULL;
 #endif
 
@@ -158,7 +155,7 @@ bool hvApp::OnInit()
             wxOPEN | wxFILE_MUST_EXIST,
             NULL);
 
-        if (!s.IsEmpty())
+        if (!s.empty())
         {
             book[0] = s;
             bookCount = 1;
@@ -166,7 +163,7 @@ bool hvApp::OnInit()
     }
 #endif
 
-#if hvUSE_IPC
+#if wxUSE_IPC
 
     if ( createServer )
     {
@@ -185,7 +182,7 @@ bool hvApp::OnInit()
         wxUnusedVar(createServer);
     }
 
-#endif  // hvUSE_IPC
+#endif  // wxUSE_IPC
 
     //now add help
     wxInitAllImageHandlers();
@@ -228,11 +225,11 @@ bool hvApp::OnInit()
 
 int hvApp::OnExit()
 {
-#if hvUSE_IPC
-    wxNode* node = m_connections.GetFirst();
+#if wxUSE_IPC
+    wxObjectList::compatibility_iterator node = m_connections.GetFirst();
     while (node)
     {
-        wxNode* next = node->GetNext();
+        wxObjectList::compatibility_iterator next = node->GetNext();
         hvConnection* connection = (hvConnection*) node->GetData();
         connection->Disconnect();
         delete connection;
@@ -400,7 +397,7 @@ wxBitmap AlternateArtProvider::CreateBitmap(const wxArtID& id,
         return wxNullBitmap;
 }
 
-#if hvUSE_IPC
+#if wxUSE_IPC
 
 wxConnectionBase *hvServer::OnAcceptConnection(const wxString& topic)
 {
@@ -520,4 +517,4 @@ bool hvConnection::OnStartAdvise(const wxString& WXUNUSED(topic),
     return true;
 }
 
-#endif // #if hvUSE_IPC
+#endif // #if wxUSE_IPC