Skip to content
Permalink
Browse files

typos

  • Loading branch information
3nids committed Sep 10, 2020
1 parent 86c4aaa commit fa185148eb5cdcc713ca5da10a0f5e501c603797
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgis.h
@@ -513,7 +513,7 @@ template<class T> QString qgsEnumValueToKey( const T &value ) SIP_SKIP
/**
* Returns the value corresponding to the given \a key of an enum.
* If the key is invalid, it will return the \a defaultValue.
* If \a tryValueAsKey is true, it will try to use convert the string key to an enum value
* If \a tryValueAsKey is true, it will try to convert the string key to an enum value
* \since QGIS 3.6
*/
template<class T> T qgsEnumKeyToValue( const QString &key, const T &defaultValue, bool tryValueAsKey = true ) SIP_SKIP
@@ -532,7 +532,7 @@ template<class T> T qgsEnumKeyToValue( const QString &key, const T &defaultValue
if ( tryValueAsKey )
{
bool canConvert = false;
int intValue = key.toInt( &ok );
int intValue = key.toInt( &canConvert );
if ( canConvert && metaEnum.valueToKey( intValue ) )
{
return static_cast<T>( intValue );

0 comments on commit fa18514

Please sign in to comment.
You can’t perform that action at this time.