Skip to content

Commit f186c11

Browse files
committed
Mark some QgsUnitType arguments as /Out/
1 parent f6b09ea commit f186c11

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/core/qgsunittypes.sip

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class QgsUnitTypes
9191
* @returns decoded units
9292
* @see encodeUnit()
9393
*/
94-
static QgsUnitTypes::DistanceUnit decodeDistanceUnit( const QString& string, bool *ok = 0 );
94+
static QgsUnitTypes::DistanceUnit decodeDistanceUnit( const QString& string, bool *ok /Out/ = 0 );
9595

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

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

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

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

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

215215
};
216216

0 commit comments

Comments
 (0)