From d8a01976c07a86e76f93a581d9ec737ab6c081a6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 11 Jun 2003 12:18:46 +0000 Subject: [PATCH] trigraph warning fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dataobj.cpp | 4 +++- src/mac/dataobj.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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; } } -- 2.47.2