diff --git a/src/app/layout/qgslayoutapputils.cpp b/src/app/layout/qgslayoutapputils.cpp index c7658b379bc..bf353136c3a 100644 --- a/src/app/layout/qgslayoutapputils.cpp +++ b/src/app/layout/qgslayoutapputils.cpp @@ -292,7 +292,7 @@ void QgsLayoutAppUtils::registerGuiForKnownItemTypes() { return new QgsLayoutHtmlWidget( qobject_cast< QgsLayoutFrame * >( item ) ); }, createRubberBand ); - htmlItemMetadata->setItemCreationFunction( [ = ]( QgsLayout * layout )->QgsLayoutItem* + htmlItemMetadata->setItemCreationFunction( [ = ]( QgsLayout * layout )->QgsLayoutItem * { std::unique_ptr< QgsLayoutItemHtml > htmlMultiFrame = qgis::make_unique< QgsLayoutItemHtml >( layout ); QgsLayoutItemHtml *html = htmlMultiFrame.get(); @@ -311,7 +311,7 @@ void QgsLayoutAppUtils::registerGuiForKnownItemTypes() { return new QgsLayoutAttributeTableWidget( qobject_cast< QgsLayoutFrame * >( item ) ); }, createRubberBand ); - attributeTableItemMetadata->setItemCreationFunction( [ = ]( QgsLayout * layout )->QgsLayoutItem* + attributeTableItemMetadata->setItemCreationFunction( [ = ]( QgsLayout * layout )->QgsLayoutItem * { std::unique_ptr< QgsLayoutItemAttributeTable > tableMultiFrame = qgis::make_unique< QgsLayoutItemAttributeTable >( layout ); QgsLayoutItemAttributeTable *table = tableMultiFrame.get(); diff --git a/src/core/gps/qgsgpsdetector.cpp b/src/core/gps/qgsgpsdetector.cpp index 67df85e9ee1..b30bc9f8ce7 100644 --- a/src/core/gps/qgsgpsdetector.cpp +++ b/src/core/gps/qgsgpsdetector.cpp @@ -45,8 +45,8 @@ QList< QPair > QgsGpsDetector::availablePorts() #ifdef Q_OS_LINUX // look for linux serial devices const QStringList devices { QStringLiteral( "/dev/ttyS%1" ), - QStringLiteral( "/dev/ttyUSB%1" ), - QStringLiteral( "/dev/rfcomm%1" ), QStringLiteral( "/dev/ttyACM%1" ) }; + QStringLiteral( "/dev/ttyUSB%1" ), + QStringLiteral( "/dev/rfcomm%1" ), QStringLiteral( "/dev/ttyACM%1" ) }; for ( const QString &linuxDev : devices ) { for ( int i = 0; i < 10; ++i ) diff --git a/src/core/layout/qgslayoutitemregistry.cpp b/src/core/layout/qgslayoutitemregistry.cpp index a662e283dbd..679128faee2 100644 --- a/src/core/layout/qgslayoutitemregistry.cpp +++ b/src/core/layout/qgslayoutitemregistry.cpp @@ -51,7 +51,7 @@ bool QgsLayoutItemRegistry::populate() #if 0 // add temporary item to register - auto createTemporaryItem = []( QgsLayout * layout )->QgsLayoutItem* + auto createTemporaryItem = []( QgsLayout * layout )->QgsLayoutItem * { return new TestLayoutItem( layout ); };