Skip to content

Commit 70bff3f

Browse files
committedOct 26, 2015
Finish flipping a lot of methods to take const references for
non-trivial types
1 parent f7f659b commit 70bff3f

File tree

114 files changed

+460
-451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+460
-451
lines changed
 

‎python/core/qgsapplication.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ static void qtgui_UpdatePyArgv(PyObject *argvlist, int argc, char **argv)
292292
static void registerOgrDrivers();
293293

294294
/** Converts absolute path to path relative to target */
295-
static QString absolutePathToRelativePath( QString apath, QString targetPath );
295+
static QString absolutePathToRelativePath( const QString& apath, const QString& targetPath );
296296
/** Converts path relative to target to an absolute path */
297-
static QString relativePathToAbsolutePath( QString rpath, QString targetPath );
297+
static QString relativePathToAbsolutePath( const QString& rpath, const QString& targetPath );
298298

299299
/** Indicates whether running from build directory (not installed) */
300300
static bool isRunningFromBuildDir();

‎python/core/qgsdataitem.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class QgsDataItem : QObject
9595
typedef QFlags<QgsDataItem::Capability> Capabilities;
9696

9797
// This will _write_ selected crs in data source
98-
virtual bool setCrs( QgsCoordinateReferenceSystem crs );
98+
virtual bool setCrs( const QgsCoordinateReferenceSystem& crs );
9999

100100
//! @deprecated since 2.8, returned type this will changed to Capabilities
101101
virtual Capability capabilities() /Deprecated/;

0 commit comments

Comments
 (0)
Please sign in to comment.