We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ada8a2 commit ca2b199Copy full SHA for ca2b199
src/core/qgsdistancearea.cpp
@@ -98,17 +98,14 @@ bool QgsDistanceArea::setEllipsoid( const QString &ellipsoid )
98
if ( cacheIt != sEllipsoidCache.constEnd() )
99
{
100
// found a match in the cache
101
- sEllipsoidCacheLock.unlock();
102
- if ( cacheIt.value().valid )
+ bool result = cacheIt.value().valid;
+ if ( result )
103
104
mEllipsoid = ellipsoid;
105
setFromParams( cacheIt.value() );
106
- return true;
107
- }
108
- else
109
- {
110
- return false;
111
}
+ sEllipsoidCacheLock.unlock();
+ return result;
112
113
sEllipsoidCacheLock.unlock();
114
0 commit comments