From: Vadim Zeitlin Date: Wed, 11 Jun 2003 12:18:46 +0000 (+0000) Subject: trigraph warning fixed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d8a01976c07a86e76f93a581d9ec737ab6c081a6 trigraph warning fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/dataobj.cpp b/src/mac/carbon/dataobj.cpp index b384ac7036..ebf1f0dbed 100644 --- a/src/mac/carbon/dataobj.cpp +++ b/src/mac/carbon/dataobj.cpp @@ -86,7 +86,9 @@ void wxDataFormat::SetType( wxDataFormatId Type ) { wxFAIL_MSG( wxT("invalid dataformat") ); - m_format = '????'; + // this is '????' but it can't be used in the code because ??' is + // parsed as a trigraph! + m_format = 0x3f3f3f3f; } } diff --git a/src/mac/dataobj.cpp b/src/mac/dataobj.cpp index b384ac7036..ebf1f0dbed 100644 --- a/src/mac/dataobj.cpp +++ b/src/mac/dataobj.cpp @@ -86,7 +86,9 @@ void wxDataFormat::SetType( wxDataFormatId Type ) { wxFAIL_MSG( wxT("invalid dataformat") ); - m_format = '????'; + // this is '????' but it can't be used in the code because ??' is + // parsed as a trigraph! + m_format = 0x3f3f3f3f; } }