@@ -91,7 +91,7 @@ class QgsUnitTypes
91
91
* @returns decoded units
92
92
* @see encodeUnit()
93
93
*/
94
- static QgsUnitTypes::DistanceUnit decodeDistanceUnit( const QString& string, bool *ok = 0 );
94
+ static QgsUnitTypes::DistanceUnit decodeDistanceUnit( const QString& string, bool *ok /Out/ = 0 );
95
95
96
96
/** Returns a translated string representing a distance unit.
97
97
* @param unit unit to convert to string
@@ -104,7 +104,7 @@ class QgsUnitTypes
104
104
* @param ok optional boolean, will be set to true if string was converted successfully
105
105
* @see toString()
106
106
*/
107
- static QgsUnitTypes::DistanceUnit stringToDistanceUnit( const QString& string, bool *ok = 0 );
107
+ static QgsUnitTypes::DistanceUnit stringToDistanceUnit( const QString& string, bool *ok /Out/ = 0 );
108
108
109
109
/** Returns the conversion factor between the specified distance units.
110
110
* @param fromUnit distance unit to convert from
@@ -130,7 +130,7 @@ class QgsUnitTypes
130
130
* @returns decoded units
131
131
* @see encodeUnit()
132
132
*/
133
- static AreaUnit decodeAreaUnit( const QString& string, bool *ok = 0 );
133
+ static AreaUnit decodeAreaUnit( const QString& string, bool *ok /Out/ = 0 );
134
134
135
135
/** Returns a translated string representing an areal unit.
136
136
* @param unit unit to convert to string
@@ -143,7 +143,7 @@ class QgsUnitTypes
143
143
* @param ok optional boolean, will be set to true if string was converted successfully
144
144
* @see toString()
145
145
*/
146
- static AreaUnit stringToAreaUnit( const QString& string, bool *ok = 0 );
146
+ static AreaUnit stringToAreaUnit( const QString& string, bool *ok /Out/ = 0 );
147
147
148
148
/** Returns the conversion factor between the specified areal units.
149
149
* @param fromUnit area unit to convert from
@@ -173,7 +173,7 @@ class QgsUnitTypes
173
173
* @returns decoded units
174
174
* @see encodeUnit()
175
175
*/
176
- static AngleUnit decodeAngleUnit( const QString& string, bool *ok = 0 );
176
+ static AngleUnit decodeAngleUnit( const QString& string, bool *ok /Out/ = 0 );
177
177
178
178
/** Returns a translated string representing an angular unit.
179
179
* @param unit unit to convert to string
@@ -210,7 +210,7 @@ class QgsUnitTypes
210
210
* @returns decoded units
211
211
* @see encodeUnit()
212
212
*/
213
- static RenderUnit decodeRenderUnit( const QString& string, bool *ok = 0 );
213
+ static RenderUnit decodeRenderUnit( const QString& string, bool *ok /Out/ = 0 );
214
214
215
215
};
216
216
0 commit comments