Skip to content

Commit

Permalink
Fixes Centos7 issues due to old gcc compiler (gcc 4.8.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasneumann committed May 7, 2018
1 parent 9e5cfb0 commit a95ec9c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/core/layertree/qgslayertreelayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ void QgsLayerTreeLayer::attachToLayer()
if ( !mRef )
return;

connect( mRef.layer, &QgsMapLayer::nameChanged, this, &QgsLayerTreeLayer::layerNameChanged );
connect( mRef.layer, &QgsMapLayer::willBeDeleted, this, &QgsLayerTreeLayer::layerWillBeDeleted );
connect( mRef.layer.data(), &QgsMapLayer::nameChanged, this, &QgsLayerTreeLayer::layerNameChanged );
connect( mRef.layer.data(), &QgsMapLayer::willBeDeleted, this, &QgsLayerTreeLayer::layerWillBeDeleted );
}


Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitemmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ void QgsLayoutItemMap::connectUpdateSlot()
} );

}
connect( mLayout, &QgsLayout::refreshed, this, &QgsLayoutItemMap::invalidateCache );
connect( mLayout.data(), &QgsLayout::refreshed, this, &QgsLayoutItemMap::invalidateCache );

connect( project->mapThemeCollection(), &QgsMapThemeCollection::mapThemeChanged, this, &QgsLayoutItemMap::mapThemeChanged );
}
Expand Down
8 changes: 4 additions & 4 deletions src/core/layout/qgslayoutitemmapoverview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ void QgsLayoutItemMapOverview::setLinkedMap( QgsLayoutItemMap *map )
//disconnect old map
if ( mFrameMap )
{
disconnect( mFrameMap, &QgsLayoutItemMap::extentChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
disconnect( mFrameMap, &QgsLayoutItemMap::mapRotationChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
disconnect( mFrameMap.data(), &QgsLayoutItemMap::extentChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
disconnect( mFrameMap.data(), &QgsLayoutItemMap::mapRotationChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
}
mFrameMap = map;
//connect to new map signals
Expand All @@ -240,8 +240,8 @@ void QgsLayoutItemMapOverview::connectSignals()

if ( mFrameMap )
{
connect( mFrameMap, &QgsLayoutItemMap::extentChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
connect( mFrameMap, &QgsLayoutItemMap::mapRotationChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
connect( mFrameMap.data(), &QgsLayoutItemMap::extentChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
connect( mFrameMap.data(), &QgsLayoutItemMap::mapRotationChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/core/layout/qgslayoutitempicture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,12 +839,12 @@ void QgsLayoutItemPicture::finalizeRestoreFromXml()
{
if ( mRotationMap )
{
disconnectMap( mRotationMap );
disconnectMap( mRotationMap.data() );
}
if ( ( mRotationMap = qobject_cast< QgsLayoutItemMap * >( mLayout->itemByUuid( mRotationMapUuid, true ) ) ) )
{
connect( mRotationMap, &QgsLayoutItemMap::mapRotationChanged, this, &QgsLayoutItemPicture::updateMapRotation );
connect( mRotationMap, &QgsLayoutItemMap::extentChanged, this, &QgsLayoutItemPicture::updateMapRotation );
connect( mRotationMap.data(), &QgsLayoutItemMap::mapRotationChanged, this, &QgsLayoutItemPicture::updateMapRotation );
connect( mRotationMap.data(), &QgsLayoutItemMap::extentChanged, this, &QgsLayoutItemPicture::updateMapRotation );
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ QgsLayoutObject::QgsLayoutObject( QgsLayout *layout )

if ( mLayout )
{
connect( mLayout, &QgsLayout::refreshed, this, &QgsLayoutObject::refresh );
connect( mLayout.data(), &QgsLayout::refreshed, this, &QgsLayoutObject::refresh );
connect( &mLayout->reportContext(), &QgsLayoutReportContext::changed, this, &QgsLayoutObject::refresh );
}
}
Expand Down
8 changes: 4 additions & 4 deletions tests/src/core/testqgstaskmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,8 @@ void TestQgsTaskManager::subTask()
}

QSignalSpy parentTerminated( parent, &QgsTask::taskTerminated );
QSignalSpy subTerminated( subTask, &QgsTask::taskTerminated );
QSignalSpy subsubTerminated( subsubTask, &QgsTask::taskTerminated );
QSignalSpy subTerminated( subTask.data(), &QgsTask::taskTerminated );
QSignalSpy subsubTerminated( subsubTask.data(), &QgsTask::taskTerminated );

subsubTask->terminate();
while ( subsubTask->status() == QgsTask::Running
Expand Down Expand Up @@ -577,8 +577,8 @@ void TestQgsTaskManager::subTask()
QCOMPARE( ( int )subTask->status(), ( int )QgsTask::Running );

QSignalSpy parentFinished( parent, &QgsTask::taskCompleted );
QSignalSpy subFinished( subTask, &QgsTask::taskCompleted );
QSignalSpy subsubFinished( subsubTask, &QgsTask::taskCompleted );
QSignalSpy subFinished( subTask.data(), &QgsTask::taskCompleted );
QSignalSpy subsubFinished( subsubTask.data(), &QgsTask::taskCompleted );

subsubTask->finish();
while ( subsubTask->status() == QgsTask::Running
Expand Down

0 comments on commit a95ec9c

Please sign in to comment.