comments and assertions

This commit is contained in:
ehouse 2008-09-28 16:47:11 +00:00
parent d1603aa543
commit 8a6992132b
2 changed files with 4 additions and 3 deletions

View file

@ -704,8 +704,6 @@ matchShortName( const wchar_t* wPath, XP_U16 XP_UNUSED(index), void* ctxt )
wchar_t buf[CE_MAX_PATH_LEN+1];
wchar_t* name;
LOG_FUNC();
XP_ASSERT( !datap->found );
name = wbname( buf, sizeof(buf), wPath );

View file

@ -305,7 +305,8 @@ makeTestBuf( CEDrawCtx* dctx, XP_UCHAR* buf, XP_UCHAR bufLen, RFIndex index )
XP_U16 nFaces = dict_numTileFaces( dict );
Tile tiles[nFaces];
XP_U16 nOut = 0;
XP_ASSERT( !!dict && nFaces < bufLen );
XP_ASSERT( !!dict );
XP_ASSERT( nFaces < bufLen );
if ( dict_hasBlankTile(dict) ) {
blank = dict_getBlankTile( dict );
}
@ -1489,6 +1490,8 @@ DLSTATIC void
DRAW_FUNC_NAME(dictChanged)( DrawCtx* p_dctx, const DictionaryCtxt* dict )
{
CEDrawCtx* dctx = (CEDrawCtx*)p_dctx;
/* May want to inval font cache if new dict has different tiles from
old. Use dict_tilesAreSame(). */
dctx->dict = dict;
}