Skip to content

Commit 51e7efe

Browse files
committed
Replace QString::null by QString() in core (deprecated since Qt 5.9)
1 parent dbedd7e commit 51e7efe

34 files changed

Lines changed: 51 additions & 51 deletions

‎python/core/auth/qgsauthconfig.sip‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class QgsPkiBundle
218218

219219
static const QgsPkiBundle fromPemPaths( const QString &certPath,
220220
const QString &keyPath,
221-
const QString &keyPass = QString::null,
221+
const QString &keyPass = QString(),
222222
const QList<QSslCertificate> &caChain = QList<QSslCertificate>() );
223223
%Docstring
224224
Construct a bundle of PKI components from PEM-formatted file paths
@@ -230,7 +230,7 @@ class QgsPkiBundle
230230
%End
231231

232232
static const QgsPkiBundle fromPkcs12Paths( const QString &bundlepath,
233-
const QString &bundlepass = QString::null );
233+
const QString &bundlepass = QString() );
234234
%Docstring
235235
Construct a bundle of PKI components from a PKCS#12 file path
236236
\param bundlepath Bundle file path

‎python/core/auth/qgsauthmanager.sip‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Name of the authentication database table that stores server exceptions/configs
6161
:rtype: str
6262
%End
6363

64-
bool init( const QString &pluginPath = QString::null );
64+
bool init( const QString &pluginPath = QString() );
6565
%Docstring
6666
Initialize QCA, prioritize qca-ossl plugin and optionally set up the authentication database
6767
:rtype: bool
@@ -107,7 +107,7 @@ Standard message for when QCA's qca-ossl plugin is missing and system is disable
107107
:rtype: bool
108108
%End
109109
110-
bool verifyMasterPassword( const QString &compare = QString::null );
110+
bool verifyMasterPassword( const QString &compare = QString() );
111111
%Docstring
112112
Verify the supplied master password against any existing hash in authentication database
113113
.. note::

‎python/core/qgscredentials.sip‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class QgsCredentials
3131
3232
virtual ~QgsCredentials();
3333
34-
bool get( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString::null );
34+
bool get( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString() );
3535
%Docstring
3636
:rtype: bool
3737
%End
@@ -72,7 +72,7 @@ retrieves instance
7272
protected:
7373
QgsCredentials();
7474
75-
virtual bool request( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString::null ) = 0;
75+
virtual bool request( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString() ) = 0;
7676
%Docstring
7777
request a password
7878
:rtype: bool
@@ -115,7 +115,7 @@ signals that object will be destroyed and shouldn't be used anymore
115115
%End
116116
117117
protected:
118-
virtual bool request( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString::null );
118+
virtual bool request( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString() );
119119
virtual bool requestMasterPassword( QString &password /In,Out/, bool stored = false );
120120
};
121121
@@ -143,7 +143,7 @@ signals that object will be destroyed and shouldn't be used anymore
143143
%End
144144
145145
protected:
146-
virtual bool request( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString::null );
146+
virtual bool request( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString() );
147147
virtual bool requestMasterPassword( QString &password /In,Out/, bool stored = false );
148148
};
149149

‎python/core/qgsdataitem.sip‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ class QgsDataCollectionItem : QgsDataItem
447447
#include "qgsdataitem.h"
448448
%End
449449
public:
450-
QgsDataCollectionItem( QgsDataItem *parent, const QString &name, const QString &path = QString::null );
450+
QgsDataCollectionItem( QgsDataItem *parent, const QString &name, const QString &path = QString() );
451451
~QgsDataCollectionItem();
452452

453453
void addChild( QgsDataItem *item /Transfer/ );

‎python/core/qgserror.sip‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class QgsErrorMessage
2828

2929
QgsErrorMessage();
3030

31-
QgsErrorMessage( const QString &message, const QString &tag = QString::null, const QString &file = QString::null, const QString &function = QString::null, int line = 0 );
31+
QgsErrorMessage( const QString &message, const QString &tag = QString(), const QString &file = QString(), const QString &function = QString(), int line = 0 );
3232
%Docstring
3333
Constructor.
3434
\param message error message string

‎python/core/qgsmultirenderchecker.sip‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class QgsMultiRenderChecker
6060

6161
void setRenderedImage( const QString &renderedImagePath );
6262
%Docstring
63-
Set the path to the rendered image. If this is not set or set to QString.Null, an image
63+
Set the path to the rendered image. If this is not set or set to null QString, an image
6464
will be rendered based on the provided mapsettings
6565

6666
\param renderedImagePath A path to the rendered image with which control images will be compared

‎python/core/qgsproject.sip‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Returns the QgsProject singleton instance
268268
:rtype: list of str
269269
%End
270270

271-
QString readEntry( const QString &scope, const QString &key, const QString &def = QString::null, bool *ok = 0 ) const;
271+
QString readEntry( const QString &scope, const QString &key, const QString &def = QString(), bool *ok = 0 ) const;
272272
%Docstring
273273
:rtype: str
274274
%End
@@ -411,7 +411,7 @@ Convenience function to query topological editing status
411411
QString homePath() const;
412412
%Docstring
413413
Return project's home path
414-
:return: home path of project (or QString.null if not set) *
414+
:return: home path of project (or null QString if not set) *
415415
:rtype: str
416416
%End
417417

‎python/core/qgsproviderregistry.sip‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class QgsProviderRegistry
4242
Manager,
4343
};
4444

45-
static QgsProviderRegistry *instance( const QString &pluginPath = QString::null );
45+
static QgsProviderRegistry *instance( const QString &pluginPath = QString() );
4646
%Docstring
4747
Means of accessing canonical single instance
4848
:rtype: QgsProviderRegistry

‎python/core/qgsvectorlayer.sip‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ Return the provider type for this layer
890890
virtual QString subsetString() const;
891891
%Docstring
892892
Get the string (typically sql) used to define a subset of the layer
893-
:return: The subset string or QString.null if not implemented by the provider
893+
:return: The subset string or null QString if not implemented by the provider
894894
:rtype: str
895895
%End
896896

‎src/core/auth/qgsauthconfig.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ const QString QgsPkiBundle::certId() const
299299
{
300300
if ( mCert.isNull() )
301301
{
302-
return QString::null;
302+
return QString();
303303
}
304304
return QString( mCert.digest( QCryptographicHash::Sha1 ).toHex() );
305305
}

0 commit comments

Comments
 (0)