]> git.saurik.com Git - wxWidgets.git/commitdiff
Attempt to make wxCompositeWindow<> compile with MSVC6.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Jan 2011 17:08:57 +0000 (17:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Jan 2011 17:08:57 +0000 (17:08 +0000)
Blind attempt to work around VC6 error about ambiguity between "const T&" and
"T" in DoSetForAllParts() template function.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/compositewin.h

index a4477e03f2a5f96600e5f13a7b7908747eb92f05..9d12ee6fad946abca97dfc0184af1b4c2643e0be 100644 (file)
@@ -90,7 +90,7 @@ private:
     virtual wxWindowList GetCompositeWindowParts() const = 0;
 
     template <class T>
-    void DoSetForAllParts(bool (wxWindowBase::*func)(const T&), const T& arg)
+    void DoSetForAllParts(bool (wxWindowBase::*func)(const T&), T arg)
     {
         // Simply call the setters for all parts of this composite window.
         const wxWindowList parts = GetCompositeWindowParts();