]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wxFont test compilation after wxFont(int flags) ctor removal.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Apr 2013 11:13:21 +0000 (11:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Apr 2013 11:13:21 +0000 (11:13 +0000)
Also mention this incompatible (since 2.9.4) change in the change log.

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

docs/changes.txt
tests/font/fonttest.cpp

index f3371da273306d41789d10240553138320d58793..f070c136626db68a87404801b981fa8be20eac3d 100644 (file)
@@ -547,6 +547,10 @@ INCOMPATIBLE CHANGES SINCE 2.9.4:
   rather than a wxWebViewBackend enum value.
 - wxWebView identifiers of the form WEB_VIEW_* have been renamed to WEBVIEW_*
   for consistency with the rest of wxWidgets.
+- wxFont(int size, wxFontFamily family, int flags) ctor added in 2.9.4 was
+  removed to avoid ambiguities with the other existing ctors and replaced with
+  the new wxFont(wxFontInfo) ctor.
+
 
 All:
 
index de529f62b2f44de11d3fdf49d4750b19fa9fbaf4..bf1940320700a4179c80e6a052edcc6f13c52a44 100644 (file)
@@ -103,9 +103,6 @@ void FontTestCase::Construct()
     // compile because it's easy to introduce ambiguities due to the number of
     // overloaded wxFont ctors.
 
-    CPPUNIT_ASSERT( wxFont(10, wxFONTFAMILY_DEFAULT).IsOk() );
-    CPPUNIT_ASSERT( wxFont(10, wxFONTFAMILY_DEFAULT,
-                               wxFONTFLAG_DEFAULT).IsOk() );
     CPPUNIT_ASSERT( wxFont(10, wxFONTFAMILY_DEFAULT,
                                wxFONTSTYLE_NORMAL,
                                wxFONTWEIGHT_NORMAL).IsOk() );