]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed VC++ warning
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 12 Jul 2001 00:08:53 +0000 (00:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 12 Jul 2001 00:08:53 +0000 (00:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/log.h
src/common/log.cpp

index 5ea8d6f649888778c579b8b66b84961400bbba9a..d7585f6f570e358d1582c643822313f397bee18d 100644 (file)
@@ -368,7 +368,7 @@ private:
 class WXDLLEXPORT wxLogPassThrough : public wxLogChain
 {
 public:
-    wxLogPassThrough() : wxLogChain(this) { }
+    wxLogPassThrough();
 };
 
 // ----------------------------------------------------------------------------
index 1ec107772293397aad5fe66f5bcb533f0ccf5467..c16ad865b42888d6fba2469bae3e5ed0248b0f85 100644 (file)
@@ -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
 // ============================================================================