Skip to content

Commit

Permalink
Fix for ticket #634 (compile warnings in RHEL64)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6752 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Mar 3, 2007
1 parent e7127f8 commit d98dcff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/gui/qgsprojectionselector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ QString QgsProjectionSelector::getCurrentProj4String()
if ( !myFileInfo.exists( ) ) //its unlikely that this condition will ever be reached
{
QgsDebugMsg("users qgis.db not found");
return NULL;
return QString("");
}
else
{
Expand Down Expand Up @@ -342,13 +342,13 @@ QString QgsProjectionSelector::getCurrentProj4String()
else
{
// No node is selected, return null
return NULL;
return QString("");
}
}
else
{
// No node is selected, return null
return NULL;
return QString("");
}

}
Expand Down Expand Up @@ -380,7 +380,7 @@ long QgsProjectionSelector::getCurrentLongAttribute(QString attributeName)
if ( !myFileInfo.exists( ) )
{
std::cout << " QgsSpatialRefSys::createFromSrid failed : users qgis.db not found" << std::endl;
return (long)NULL;
return 0;
}
}
else //must be a system projection then
Expand Down Expand Up @@ -435,7 +435,7 @@ long QgsProjectionSelector::getCurrentLongAttribute(QString attributeName)
}

// No node is selected, return null
return (long)NULL;
return 0;
}


Expand All @@ -461,7 +461,7 @@ long QgsProjectionSelector::getCurrentSRSID()
}
else
{
return (long)NULL;
return 0;
}
}

Expand Down

0 comments on commit d98dcff

Please sign in to comment.