Navigation Menu

Skip to content

Commit

Permalink
Use qt Q_UNUSED for unused params rather
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8457 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed May 19, 2008
1 parent 6218fbb commit 730a319
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/plugins/grass/qgsgrassedit.cpp
Expand Up @@ -1105,7 +1105,7 @@ double QgsGrassEdit::threshold ( void )
}
catch(QgsCsException& cse)
{
UNUSED(cse);
Q_UNUSED(cse);
//error
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/grass/qgsgrassnewmapset.cpp
Expand Up @@ -604,7 +604,7 @@ void QgsGrassNewMapset::setRegionPage()
}
catch(QgsCsException &cse)
{
UNUSED(cse);
Q_UNUSED(cse);
std::cerr << "Cannot transform point" << std::endl;
ok = false;
break;
Expand Down Expand Up @@ -950,7 +950,7 @@ void QgsGrassNewMapset::setSelectedRegion()
}
catch(QgsCsException &cse)
{
UNUSED(cse);
Q_UNUSED(cse);
std::cerr << "Cannot transform point" << std::endl;
ok = false;
break;
Expand Down Expand Up @@ -1040,7 +1040,7 @@ void QgsGrassNewMapset::setCurrentRegion()
}
catch(QgsCsException &cse)
{
UNUSED(cse);
Q_UNUSED(cse);
std::cerr << "Cannot transform point" << std::endl;
ok = false;
break;
Expand Down Expand Up @@ -1186,7 +1186,7 @@ void QgsGrassNewMapset::drawRegion()
}
catch(QgsCsException &cse)
{
UNUSED(cse);
Q_UNUSED(cse);
std::cerr << "Cannot transform point" << std::endl;
ok = false;
break;
Expand Down
12 changes: 6 additions & 6 deletions src/plugins/north_arrow/plugin.cpp
Expand Up @@ -319,15 +319,15 @@ bool QgsNorthArrowPlugin::calculateNorthDirection()
// project p1 and p2 to geographic coords
try
{
p1 = transform.transform(p1);
p2 = transform.transform(p2);
p1 = transform.transform(p1);
p2 = transform.transform(p2);
}
catch (QgsException &e)
{
UNUSED(e);
// just give up
QgsDebugMsg("Transformation error, quitting");
return false;
Q_UNUSED(e);
// just give up
QgsDebugMsg("Transformation error, quitting");
return false;
}

// Work out the value of the initial heading one takes to go
Expand Down

0 comments on commit 730a319

Please sign in to comment.