QDomDocument changed the implementation of setContent

This commit is contained in:
YiFang Xiao 2023-06-06 15:37:47 +08:00
parent 0cd1837ff2
commit c2ff1e804f

View file

@ -127,7 +127,7 @@ string convert( string const & in, DICT_TYPE type, map < string, string > const
in_data += inConverted + "</div>";
#if ( QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 ) )
#if ( QT_VERSION < QT_VERSION_CHECK( 6, 5, 0 ) )
if ( !dd.setContent( QByteArray( in_data.c_str() ), false, &errorStr, &errorLine, &errorColumn ) ) {
qWarning( "Xdxf2html error, xml parse failed: %s at %d,%d\n",
errorStr.toLocal8Bit().constData(),