Skip to content

Commit

Permalink
Fixed few warnings in samples (#1673) (#1675)
Browse files Browse the repository at this point in the history
  • Loading branch information
aji13187 authored Dec 7, 2023
1 parent b40566f commit 0f0aa07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ LoadWfsXmlQuery::LoadWfsXmlQuery(QObject* parent /* = nullptr */):
return;

// populate the table with XML Query
wfsFeatureTable->populateFromServiceAsync(xmlQueryString, true);
auto future = wfsFeatureTable->populateFromServiceAsync(xmlQueryString, true);
Q_UNUSED(future)

// set the viewpoint to the center of the extent
m_mapView->setViewpointGeometryAsync(wfsFeatureTable->extent(), 50);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,9 @@ void IdentifyLayers::connectSignals()
{
// reset the message text
m_message = QString();
int i = 0;

for (IdentifyLayerResult* result : results)
{
++i;
// lambda for calculating result count
auto geoElementsCountFromResult = [] (IdentifyLayerResult* result) -> int
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ void OrbitCameraAroundObject::cockpitView()
m_orbitCam->setMinCameraDistance(0);

// animate the camera target to the cockpit instead of the center of the plane
m_orbitCam->setTargetOffsetsAsync(0, -2, 1.1, 1);
auto future = m_orbitCam->setTargetOffsetsAsync(0, -2, 1.1, 1);
Q_UNUSED(future)

//The animation may rotate us over the set camera bounds based on the plane pitch, so unlock them.
m_orbitCam->setMinCameraPitchOffset(-180.0);
Expand Down

0 comments on commit 0f0aa07

Please sign in to comment.