diff --git a/src/modules/locale/GeoIPXML.cpp b/src/modules/locale/GeoIPXML.cpp index 1bba559d0..f6b3ff342 100644 --- a/src/modules/locale/GeoIPXML.cpp +++ b/src/modules/locale/GeoIPXML.cpp @@ -36,10 +36,8 @@ XMLGeoIP::processReply( const QByteArray& data ) cDebug() << "GeoIP found" << tzElements.length() << "elements"; for ( int it = 0; it < tzElements.length(); ++it ) { - if ( tzElements.at(it).isText() ) - { - return splitTZString( tzElements.at(it).nodeValue() ); - } + auto e = tzElements.at(it).toElement(); + return splitTZString( e.text() ); } } else