Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 20, 2025
1 parent 9eeef20 commit dd9b50f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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( "<td>%1</td><td>%2" ).arg( tr( "GDAL/OGR version" ), gdalVersionCompiled );
if ( gdalVersionCompiled != gdalVersionRunning )
Expand Down

0 comments on commit dd9b50f

Please sign in to comment.