From: Vadim Zeitlin Date: Thu, 21 Jul 2011 13:49:59 +0000 (+0000) Subject: Make wxEnhMetaFileDC ctor from wxDC explicit. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fb4faeb5de3e7c1cf42e4ae002bf959f88e24ae5 Make wxEnhMetaFileDC ctor from wxDC explicit. This avoids implicit conversion of any kind of wxDC to wxEnhMetaFileDC which is totally unexpected. See #13326. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/enhmeta.h b/include/wx/msw/enhmeta.h index e4cd9b3284..e134750ea6 100644 --- a/include/wx/msw/enhmeta.h +++ b/include/wx/msw/enhmeta.h @@ -89,6 +89,7 @@ public: // as above, but takes reference DC as first argument to take resolution, // size, font metrics etc. from + wxEXPLICIT wxEnhMetaFileDC(const wxDC& referenceDC, const wxString& filename = wxEmptyString, int width = 0, int height = 0,