X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..fd2daa68f4e2d0f66f466be4dcee7bad9ed4be1a:/src/generic/helpxlp.cpp diff --git a/src/generic/helpxlp.cpp b/src/generic/helpxlp.cpp index 0631f6d80a..7cf6872a82 100644 --- a/src/generic/helpxlp.cpp +++ b/src/generic/helpxlp.cpp @@ -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")))