Skip to content

Commit d98dcff

Browse files
author
g_j_m
committedMar 3, 2007
Fix for ticket #634 (compile warnings in RHEL64)
git-svn-id: http://svn.osgeo.org/qgis/trunk@6752 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e7127f8 commit d98dcff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/gui/qgsprojectionselector.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ QString QgsProjectionSelector::getCurrentProj4String()
286286
if ( !myFileInfo.exists( ) ) //its unlikely that this condition will ever be reached
287287
{
288288
QgsDebugMsg("users qgis.db not found");
289-
return NULL;
289+
return QString("");
290290
}
291291
else
292292
{
@@ -342,13 +342,13 @@ QString QgsProjectionSelector::getCurrentProj4String()
342342
else
343343
{
344344
// No node is selected, return null
345-
return NULL;
345+
return QString("");
346346
}
347347
}
348348
else
349349
{
350350
// No node is selected, return null
351-
return NULL;
351+
return QString("");
352352
}
353353

354354
}
@@ -380,7 +380,7 @@ long QgsProjectionSelector::getCurrentLongAttribute(QString attributeName)
380380
if ( !myFileInfo.exists( ) )
381381
{
382382
std::cout << " QgsSpatialRefSys::createFromSrid failed : users qgis.db not found" << std::endl;
383-
return (long)NULL;
383+
return 0;
384384
}
385385
}
386386
else //must be a system projection then
@@ -435,7 +435,7 @@ long QgsProjectionSelector::getCurrentLongAttribute(QString attributeName)
435435
}
436436

437437
// No node is selected, return null
438-
return (long)NULL;
438+
return 0;
439439
}
440440

441441

@@ -461,7 +461,7 @@ long QgsProjectionSelector::getCurrentSRSID()
461461
}
462462
else
463463
{
464-
return (long)NULL;
464+
return 0;
465465
}
466466
}
467467

0 commit comments

Comments
 (0)
Please sign in to comment.