mdx.cc: fix compilation under Linux and Mac OS X

This commit is contained in:
Abs62 2013-04-25 17:52:23 +04:00
parent febbedd4b7
commit 5277f58852

6
mdx.cc
View file

@ -763,13 +763,13 @@ void MdxDictionary::loadArticle( uint32_t offset, string & headword, string & ar
char * articleData = chunks.getBlock( offset, chunk );
// Make an sub unique id for this article
char articleId[32] = { 0 };
_ui64toa( ( uintptr_t )articleData, articleId, 16 );
QString articleId;
articleId.setNum( ( quint64 )articleData, 16 );
headword = articleData;
articleText = string( articleData + headword.size() + 1 );
articleText = MdxParser::substituteStylesheet( articleText, styleSheets );
articleText = filterResource( articleId, articleText.c_str() );
articleText = filterResource( articleId.toLatin1().constData(), articleText.c_str() );
}
string MdxDictionary::filterResource( const char * articleId, const char * article )