Skip to content

Commit

Permalink
Return QByteArrays instead of 0's.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5238 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 9, 2006
1 parent 2df3139 commit dca0021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -732,7 +732,7 @@ QByteArray QgsWmsProvider::retrieveUrl(QString url)

mError += "\n" + tr("Tried URL: ") + url;

return 0;
return QByteArray("");
}

if (http.responseContentType() == "application/vnd.ogc.se_xml")
Expand All @@ -756,7 +756,7 @@ QByteArray QgsWmsProvider::retrieveUrl(QString url)
<< mError.toLocal8Bit().data() << "'." << std::endl;
#endif

return 0;
return QByteArray("");
}

return httpResponse;
Expand Down

0 comments on commit dca0021

Please sign in to comment.