From 5277f5885217ed90a0b393de8e77d66c77358515 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Thu, 25 Apr 2013 17:52:23 +0400 Subject: [PATCH] mdx.cc: fix compilation under Linux and Mac OS X --- mdx.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mdx.cc b/mdx.cc index 52038eed..c7d81919 100644 --- a/mdx.cc +++ b/mdx.cc @@ -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 )