X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..520e470fdd0daef09c77938db642e4583933c90d:/src/generic/helpxlp.cpp diff --git a/src/generic/helpxlp.cpp b/src/generic/helpxlp.cpp index 0631f6d80a..4fd7ed0a2f 100644 --- a/src/generic/helpxlp.cpp +++ b/src/generic/helpxlp.cpp @@ -26,7 +26,7 @@ #include "wx/generic/helpxlp.h" -#if USE_HELP +#if wxUSE_HELP #include #ifdef __X__ @@ -55,7 +55,7 @@ #if !USE_SHARED_LIBRARY -#ifdef __WINDOWS__ +#ifdef __WXMSW__ IMPLEMENT_CLASS(wxXLPHelpClient, wxDDEClient) IMPLEMENT_CLASS(wxXLPHelpConnection, wxDDEConnection) #else @@ -66,13 +66,22 @@ IMPLEMENT_CLASS(wxXLPHelpConnection, wxTCPConnection) IMPLEMENT_CLASS(wxXLPHelpController, wxHelpControllerBase) #endif -wxXLPHelpController::wxXLPHelpController(void): - helpClient(this) +// suppress annoying warning "'this' used in base member init list" (so what?) +#ifdef _MSC_VER +#pragma warning(disable: 4355) +#endif // Visual C++ + +wxXLPHelpController::wxXLPHelpController(void) + : helpClient(this) { helpFile = ""; helpServer = -1; helpHost = ""; helpRunning = FALSE; helpConnection = NULL; } +#ifdef _MSC_VER +#pragma warning(default: 4355) +#endif // Visual C++ + wxXLPHelpController::~wxXLPHelpController(void) { } @@ -180,7 +189,7 @@ bool wxXLPHelpController::Run(void) if (!helpFile || !helpHost || helpRunning) return FALSE; #endif -#ifdef __WINDOWS__ +#ifdef __WXMSW__ if (!helpFile || helpRunning) return FALSE; #endif @@ -199,7 +208,7 @@ bool wxXLPHelpController::Run(void) char server[32]; sprintf(server, "%d", helpServer); -#ifdef __WINDOWS__ +#ifdef __WXMSW__ // Only one instance of wxHelp under Windows. // See if there's already an instance of wxHelp if ((helpConnection = (wxXLPHelpConnection *)helpClient.MakeConnection(helpHost, server, "WXHELP"))) @@ -254,4 +263,4 @@ bool wxXLPHelpConnection::OnDisconnect(void) return TRUE; } -#endif // USE_HELP +#endif // wxUSE_HELP