From: Vadim Zeitlin Date: Sun, 26 Nov 2006 20:18:53 +0000 (+0000) Subject: compilation fix for BCC 5.5: use IsSameAs() instead of accessing m_refData directly... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a38cd629d76f1c119383ddc363e48542e3f15061 compilation fix for BCC 5.5: use IsSameAs() instead of accessing m_refData directly which somehow fails with this compiler git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index 0257058f80..236f10b00d 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -324,7 +324,7 @@ bool wxFontBase::operator==(const wxFont& font) const { // either it is the same font, i.e. they share the same common data or they // have different ref datas but still describe the same font - return m_refData == font.m_refData || + return IsSameAs(font) || ( Ok() == font.Ok() && GetPointSize() == font.GetPointSize() &&