fixed unused variable warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -120,7 +120,10 @@ void wxFontRefData::MacFindFont()
|
||||
//TODO:if we supply the style as an additional parameter we must make a testing
|
||||
//sequence in order to degrade gracefully while trying to maintain most of the style
|
||||
//information, meanwhile we just take the normal font and apply the features after
|
||||
OSStatus status = ::ATSUFONDtoFontID(m_macFontNum, normal /*qdStyle*/, (UInt32*)&m_macATSUFontID);
|
||||
#ifdef __WXDEBUG__
|
||||
OSStatus status =
|
||||
#endif // __WXDEBUG__
|
||||
::ATSUFONDtoFontID(m_macFontNum, normal /*qdStyle*/, (UInt32*)&m_macATSUFontID);
|
||||
/*
|
||||
status = ATSUFindFontFromName ( (Ptr) m_faceName , strlen( m_faceName ) ,
|
||||
kFontFullName, kFontMacintoshPlatform, kFontRomanScript , kFontNoLanguage , (UInt32*)&m_macATSUFontID ) ;
|
||||
|
@@ -931,8 +931,10 @@ bool wxTextCtrl::SetStyle(long start, long end, const wxTextAttr& style)
|
||||
|
||||
if ( attrCounter > 0 )
|
||||
{
|
||||
OSStatus status = TXNSetTypeAttributes ((TXNObject)m_macTXN, attrCounter , typeAttr,
|
||||
start,end);
|
||||
#ifdef __WXDEBUG__
|
||||
OSStatus status =
|
||||
#endif // __WXDEBUG__
|
||||
TXNSetTypeAttributes ((TXNObject)m_macTXN, attrCounter , typeAttr, start,end);
|
||||
wxASSERT_MSG( status == noErr , wxT("Couldn't set text attributes") ) ;
|
||||
}
|
||||
if ( !formerEditable )
|
||||
|
@@ -120,7 +120,10 @@ void wxFontRefData::MacFindFont()
|
||||
//TODO:if we supply the style as an additional parameter we must make a testing
|
||||
//sequence in order to degrade gracefully while trying to maintain most of the style
|
||||
//information, meanwhile we just take the normal font and apply the features after
|
||||
OSStatus status = ::ATSUFONDtoFontID(m_macFontNum, normal /*qdStyle*/, (UInt32*)&m_macATSUFontID);
|
||||
#ifdef __WXDEBUG__
|
||||
OSStatus status =
|
||||
#endif // __WXDEBUG__
|
||||
::ATSUFONDtoFontID(m_macFontNum, normal /*qdStyle*/, (UInt32*)&m_macATSUFontID);
|
||||
/*
|
||||
status = ATSUFindFontFromName ( (Ptr) m_faceName , strlen( m_faceName ) ,
|
||||
kFontFullName, kFontMacintoshPlatform, kFontRomanScript , kFontNoLanguage , (UInt32*)&m_macATSUFontID ) ;
|
||||
|
@@ -931,8 +931,10 @@ bool wxTextCtrl::SetStyle(long start, long end, const wxTextAttr& style)
|
||||
|
||||
if ( attrCounter > 0 )
|
||||
{
|
||||
OSStatus status = TXNSetTypeAttributes ((TXNObject)m_macTXN, attrCounter , typeAttr,
|
||||
start,end);
|
||||
#ifdef __WXDEBUG__
|
||||
OSStatus status =
|
||||
#endif // __WXDEBUG__
|
||||
TXNSetTypeAttributes ((TXNObject)m_macTXN, attrCounter , typeAttr, start,end);
|
||||
wxASSERT_MSG( status == noErr , wxT("Couldn't set text attributes") ) ;
|
||||
}
|
||||
if ( !formerEditable )
|
||||
|
Reference in New Issue
Block a user