Attempt to make wxCompositeWindow<> compile with MSVC6.

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
This commit is contained in:
Vadim Zeitlin
2011-01-04 17:08:57 +00:00
parent 339e9747d2
commit 5ed8e4e2e4

View 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();