Skip to content
Permalink
Browse files

Server landingpage: GCC does not like uniform initialization

Fixes #38308
  • Loading branch information
elpaso authored and nyalldawson committed Aug 17, 2020
1 parent abb2996 commit 0b651de82eca652cf95857a58bdb6222bd625577
@@ -44,7 +44,7 @@ void QgsLandingPageHandler::handleRequest( const QgsServerApiContext &context )
}
else
{
const json projects { projectsData( ) };
const json projects = projectsData( ) ;
json data
{
{ "links", links( context ) },
@@ -64,7 +64,7 @@ const QString QgsLandingPageHandler::templatePath( const QgsServerApiContext &co

json QgsLandingPageHandler::projectsData() const
{
json j { json::array() };
json j = json::array();
const auto availableProjects { QgsLandingPageUtils::projects( ) };
const auto constProjectKeys { availableProjects.keys() };
for ( const auto &p : constProjectKeys )
@@ -572,7 +572,7 @@ json QgsLandingPageUtils::layerTree( const QgsProject &project, const QStringLis
const auto cChildren { node->children() };
for ( const auto &c : cChildren )
{
const json harvested { harvest( c, treeId ) };
const json harvested = harvest( c, treeId );
if ( ! harvested.is_null() )
{
children.push_back( harvested );

0 comments on commit 0b651de

Please sign in to comment.
You can’t perform that action at this time.