From: Vadim Zeitlin Date: Thu, 12 Jul 2001 00:08:53 +0000 (+0000) Subject: fixed VC++ warning X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/93d4c1d03b162957dddace3c22f12f0e7b5bbf06 fixed VC++ warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/log.h b/include/wx/log.h index 5ea8d6f649..d7585f6f57 100644 --- a/include/wx/log.h +++ b/include/wx/log.h @@ -368,7 +368,7 @@ private: class WXDLLEXPORT wxLogPassThrough : public wxLogChain { public: - wxLogPassThrough() : wxLogChain(this) { } + wxLogPassThrough(); }; // ---------------------------------------------------------------------------- diff --git a/src/common/log.cpp b/src/common/log.cpp index 1ec1077722..c16ad865b4 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -615,6 +615,24 @@ void wxLogChain::DoLog(wxLogLevel level, const wxChar *szString, time_t t) } } +// ---------------------------------------------------------------------------- +// wxLogPassThrough +// ---------------------------------------------------------------------------- + +#ifdef __VISUALC__ + // "'this' : used in base member initializer list" - so what? + #pragma warning(disable:4355) +#endif // VC++ + +wxLogPassThrough::wxLogPassThrough() + : wxLogChain(this) +{ +} + +#ifdef __VISUALC__ + #pragma warning(default:4355) +#endif // VC++ + // ============================================================================ // Global functions/variables // ============================================================================