From dd9b50f7c259d16bdff125023d5a8efce01c353c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 20 Feb 2025 00:46:08 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/app/qgisapp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index cb18a6547b96..436656236345 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -5494,12 +5494,12 @@ QString QgisApp::getVersionString() // GDAL version QString gdalVersionCompiled { GDAL_RELEASE_NAME }; -#if defined(GDAL_RELEASE_NICKNAME) +#if defined( GDAL_RELEASE_NICKNAME ) gdalVersionCompiled += QStringLiteral( " \"%1\"" ).arg( QStringLiteral( GDAL_RELEASE_NICKNAME ) ); #endif QString gdalVersionRunning { GDALVersionInfo( "RELEASE_NAME" ) }; - if ( atoi( GDALVersionInfo("VERSION_NUM") ) >= GDAL_COMPUTE_VERSION( 3, 11, 0 ) ) - gdalVersionRunning += QStringLiteral( " \"%1\"" ).arg( GDALVersionInfo("RELEASE_NICKNAME") ); + if ( atoi( GDALVersionInfo( "VERSION_NUM" ) ) >= GDAL_COMPUTE_VERSION( 3, 11, 0 ) ) + gdalVersionRunning += QStringLiteral( " \"%1\"" ).arg( GDALVersionInfo( "RELEASE_NICKNAME" ) ); versionString += QStringLiteral( "%1%2" ).arg( tr( "GDAL/OGR version" ), gdalVersionCompiled ); if ( gdalVersionCompiled != gdalVersionRunning )