Skip to content

Commit

Permalink
Mark some QgsUnitType arguments as /Out/
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 25, 2016
1 parent f6b09ea commit f186c11
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/core/qgsunittypes.sip
Expand Up @@ -91,7 +91,7 @@ class QgsUnitTypes
* @returns decoded units
* @see encodeUnit()
*/
static QgsUnitTypes::DistanceUnit decodeDistanceUnit( const QString& string, bool *ok = 0 );
static QgsUnitTypes::DistanceUnit decodeDistanceUnit( const QString& string, bool *ok /Out/ = 0 );

/** Returns a translated string representing a distance unit.
* @param unit unit to convert to string
Expand All @@ -104,7 +104,7 @@ class QgsUnitTypes
* @param ok optional boolean, will be set to true if string was converted successfully
* @see toString()
*/
static QgsUnitTypes::DistanceUnit stringToDistanceUnit( const QString& string, bool *ok = 0 );
static QgsUnitTypes::DistanceUnit stringToDistanceUnit( const QString& string, bool *ok /Out/ = 0 );

/** Returns the conversion factor between the specified distance units.
* @param fromUnit distance unit to convert from
Expand All @@ -130,7 +130,7 @@ class QgsUnitTypes
* @returns decoded units
* @see encodeUnit()
*/
static AreaUnit decodeAreaUnit( const QString& string, bool *ok = 0 );
static AreaUnit decodeAreaUnit( const QString& string, bool *ok /Out/ = 0 );

/** Returns a translated string representing an areal unit.
* @param unit unit to convert to string
Expand All @@ -143,7 +143,7 @@ class QgsUnitTypes
* @param ok optional boolean, will be set to true if string was converted successfully
* @see toString()
*/
static AreaUnit stringToAreaUnit( const QString& string, bool *ok = 0 );
static AreaUnit stringToAreaUnit( const QString& string, bool *ok /Out/ = 0 );

/** Returns the conversion factor between the specified areal units.
* @param fromUnit area unit to convert from
Expand Down Expand Up @@ -173,7 +173,7 @@ class QgsUnitTypes
* @returns decoded units
* @see encodeUnit()
*/
static AngleUnit decodeAngleUnit( const QString& string, bool *ok = 0 );
static AngleUnit decodeAngleUnit( const QString& string, bool *ok /Out/ = 0 );

/** Returns a translated string representing an angular unit.
* @param unit unit to convert to string
Expand Down Expand Up @@ -210,7 +210,7 @@ class QgsUnitTypes
* @returns decoded units
* @see encodeUnit()
*/
static RenderUnit decodeRenderUnit( const QString& string, bool *ok = 0 );
static RenderUnit decodeRenderUnit( const QString& string, bool *ok /Out/ = 0 );

};

0 comments on commit f186c11

Please sign in to comment.