Navigation Menu

Skip to content

Commit

Permalink
QgsQuickMapCanvasMap::onWindowChanged(): silence cppcheck warning, bu…
Browse files Browse the repository at this point in the history
…t potential bug
  • Loading branch information
rouault committed Jun 2, 2020
1 parent e1bb8e9 commit 238e12b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/quickgui/qgsquickmapcanvasmap.cpp
Expand Up @@ -182,6 +182,8 @@ void QgsQuickMapCanvasMap::renderJobFinished()

void QgsQuickMapCanvasMap::onWindowChanged( QQuickWindow *window )
{
// FIXME? the above disconnect is done potentially on a nullptr
// cppcheck-suppress nullPointerRedundantCheck
disconnect( window, &QQuickWindow::screenChanged, this, &QgsQuickMapCanvasMap::onScreenChanged );
if ( window )
{
Expand Down

0 comments on commit 238e12b

Please sign in to comment.