Skip to content
Permalink
Browse files
Use qt Q_UNUSED for unused params rather
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 730a31990996fb2cbddc7de9bf481577dd4b2ab4
Showing with 11 additions and 11 deletions.
  1. +1 −1 src/plugins/grass/qgsgrassedit.cpp
  2. +4 −4 src/plugins/grass/qgsgrassnewmapset.cpp
  3. +6 −6 src/plugins/north_arrow/plugin.cpp
@@ -1105,7 +1105,7 @@ double QgsGrassEdit::threshold ( void )
}
catch(QgsCsException& cse)
{
UNUSED(cse);
Q_UNUSED(cse);
//error
}
}
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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

0 comments on commit 730a319

Please sign in to comment.