"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/providers/wfs/qgsoapifapirequest.cpp" between
QGIS-final-3_14_15.tar.gz and QGIS-final-3_14_16.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Latest release (3.14.x series).

qgsoapifapirequest.cpp  (QGIS-final-3_14_15):qgsoapifapirequest.cpp  (QGIS-final-3_14_16)
skipping to change at line 134 skipping to change at line 134
const auto info = j["info"]; const auto info = j["info"];
if ( info.is_object() && info.contains( "contact" ) ) if ( info.is_object() && info.contains( "contact" ) )
{ {
const auto jContact = info["contact"]; const auto jContact = info["contact"];
if ( jContact.is_object() && jContact.contains( "name" ) ) if ( jContact.is_object() && jContact.contains( "name" ) )
{ {
const auto name = jContact["name"]; const auto name = jContact["name"];
if ( name.is_string() ) if ( name.is_string() )
{ {
QgsAbstractMetadataBase::Contact contact( QString::fromStdString( na me.get<std::string>() ) ); QgsAbstractMetadataBase::Contact contact( QString::fromStdString( na me.get<std::string>() ) );
const auto email = jContact["email"]; if ( jContact.contains( "email" ) )
if ( email.is_string() )
{ {
contact.email = QString::fromStdString( email.get<std::string>() ) const auto email = jContact["email"];
; if ( email.is_string() )
{
contact.email = QString::fromStdString( email.get<std::string>()
);
}
} }
if ( jContact.contains( "url" ) )
const auto url = jContact["url"];
if ( url.is_string() )
{ {
// A bit of abuse to fill organization with url const auto url = jContact["url"];
contact.organization = QString::fromStdString( url.get<std::string if ( url.is_string() )
>() ); {
// A bit of abuse to fill organization with url
contact.organization = QString::fromStdString( url.get<std::stri
ng>() );
}
} }
mMetadata.addContact( contact ); mMetadata.addContact( contact );
} }
} }
} }
} }
} }
catch ( const json::parse_error &ex ) catch ( const json::parse_error &ex )
{ {
mErrorCode = QgsBaseNetworkRequest::ApplicationLevelError; mErrorCode = QgsBaseNetworkRequest::ApplicationLevelError;
 End of changes. 4 change blocks. 
10 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)