From dbdbd758218f2ef65f695a6767224b6516012e4e Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Wed, 21 Jun 2023 09:58:32 +1000 Subject: [PATCH] Apply suggestions from code review --- src/providers/postgres/qgspostgresconn.cpp | 2 +- src/providers/postgres/qgspostgresconn.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/postgres/qgspostgresconn.cpp b/src/providers/postgres/qgspostgresconn.cpp index 1eda0356a90..b795553f938 100644 --- a/src/providers/postgres/qgspostgresconn.cpp +++ b/src/providers/postgres/qgspostgresconn.cpp @@ -298,7 +298,7 @@ static void noticeProcessor( void *arg, const char *message ) QgsMessageLog::logMessage( QObject::tr( "NOTICE: %1" ).arg( msg ), QObject::tr( "PostGIS" ) ); } -QAtomicInt QgsPostgresConn::mNextCursorId = 0; +QAtomicInt QgsPostgresConn::sNextCursorId = 0; QgsPostgresConn::QgsPostgresConn( const QString &conninfo, bool readOnly, bool shared, bool transaction, bool allowRequestCredentials ) : mRef( 1 ) diff --git a/src/providers/postgres/qgspostgresconn.h b/src/providers/postgres/qgspostgresconn.h index 8589f22454f..e97b4ad6b99 100644 --- a/src/providers/postgres/qgspostgresconn.h +++ b/src/providers/postgres/qgspostgresconn.h @@ -546,7 +546,7 @@ class QgsPostgresConn : public QObject bool mSwapEndian; void deduceEndian(); - static QAtomicInt mNextCursorId; + static QAtomicInt sNextCursorId; bool mShared; //!< Whether the connection is shared by more providers (must not be if going to be used in worker threads)