File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class QgsUserProfileManager : QObject
34
34
User profile manager used to manage user profiles for the instance of QGIS.
35
35
%End
36
36
37
- static QString resolveProfilesFolder( const QString &basePath = QString() );
37
+ static QString resolveProfilesFolder( const QString &basePath = QString() );
38
38
%Docstring
39
39
Resolves the profiles folder for the given path. Path will have \\profiles appended to the path
40
40
\param basePath The base path to resolve the path from to append the \\profiles folder to.
@@ -58,7 +58,7 @@ class QgsUserProfileManager : QObject
58
58
:rtype: QgsUserProfile
59
59
%End
60
60
61
- void setRootLocation( QString rootProfileLocation );
61
+ void setRootLocation( const QString & rootProfileLocation );
62
62
%Docstring
63
63
Set the root profile location for the profile manager. All profiles are loaded from this
64
64
location. Will also contain a profiles.ini for holding profile settings.
@@ -134,7 +134,7 @@ class QgsUserProfileManager : QObject
134
134
:rtype: QgsError
135
135
%End
136
136
137
- QgsError deleteProfile( const QString name );
137
+ QgsError deleteProfile( const QString & name );
138
138
%Docstring
139
139
Deletes a profile from the root profiles folder.
140
140
.. note::
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ QgsUserProfile *QgsUserProfileManager::getProfile( const QString &defaultProfile
58
58
return profile;
59
59
}
60
60
61
- void QgsUserProfileManager::setRootLocation ( QString rootProfileLocation )
61
+ void QgsUserProfileManager::setRootLocation ( const QString & rootProfileLocation )
62
62
{
63
63
mRootProfilePath = rootProfileLocation;
64
64
@@ -115,7 +115,7 @@ bool QgsUserProfileManager::profileExists( const QString &name ) const
115
115
return allProfiles ().contains ( name );
116
116
}
117
117
118
- QgsUserProfile *QgsUserProfileManager::profileForName ( const QString name ) const
118
+ QgsUserProfile *QgsUserProfileManager::profileForName ( const QString & name ) const
119
119
{
120
120
QString profilePath = mRootProfilePath + QDir::separator () + name;
121
121
return new QgsUserProfile ( profilePath );
@@ -154,7 +154,7 @@ QgsError QgsUserProfileManager::createUserProfile( const QString &name )
154
154
return error;
155
155
}
156
156
157
- QgsError QgsUserProfileManager::deleteProfile ( const QString name )
157
+ QgsError QgsUserProfileManager::deleteProfile ( const QString & name )
158
158
{
159
159
QgsError error;
160
160
QDir folder ( mRootProfilePath + QDir::separator () + name );
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class CORE_EXPORT QgsUserProfileManager : public QObject
53
53
* \param basePath The base path to resolve the path from to append the \\profiles folder to.
54
54
* \return The root path to store user profiles.
55
55
*/
56
- static QString resolveProfilesFolder ( const QString &basePath = QString() );
56
+ static QString resolveProfilesFolder ( const QString &basePath = QString() );
57
57
58
58
/* *
59
59
* Return the profile from the given root profile location.
@@ -73,7 +73,7 @@ class CORE_EXPORT QgsUserProfileManager : public QObject
73
73
* location. Will also contain a profiles.ini for holding profile settings.
74
74
* \param rootProfileLocation Path to the top level profile folder which contains folders for each profile.
75
75
*/
76
- void setRootLocation ( QString rootProfileLocation );
76
+ void setRootLocation ( const QString & rootProfileLocation );
77
77
78
78
/* *
79
79
* Returns the path to the root profiles location.
@@ -141,7 +141,7 @@ class CORE_EXPORT QgsUserProfileManager : public QObject
141
141
* \param name The name of the profile to delete.
142
142
* \return A QgsError with a message if the profile failed to be deleted.
143
143
*/
144
- QgsError deleteProfile ( const QString name );
144
+ QgsError deleteProfile ( const QString & name );
145
145
146
146
/* *
147
147
* The currently active user profile.
You can’t perform that action at this time.
0 commit comments