Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
NO SIDE EFFECTS IN ASSERT() ! (see man assert for more info)
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6700 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Feb 25, 2007
1 parent f8a5cdd commit c0a0ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgisapp.cpp
Expand Up @@ -439,7 +439,7 @@ void QgisApp::createActions()
mActionAddRasterLayer= new QAction(QIcon(myIconPath+"/mActionAddRasterLayer.png"), tr("Add a Raster Layer..."), this);
mActionAddRasterLayer->setShortcut(tr("R","Add a Raster Layer"));
mActionAddRasterLayer->setStatusTip(tr("Add a Raster Layer"));
assert(connect(mActionAddRasterLayer, SIGNAL(triggered()), this, SLOT(addRasterLayer())));
connect(mActionAddRasterLayer, SIGNAL(triggered()), this, SLOT(addRasterLayer()));
//
mActionAddLayer= new QAction(QIcon(myIconPath+"/mActionAddLayer.png"), tr("Add a PostGIS Layer..."), this);
mActionAddLayer->setShortcut(tr("D","Add a PostGIS Layer"));
Expand All @@ -451,7 +451,7 @@ void QgisApp::createActions()
// std::cout << "HAVE_POSTGRESQL not defined" << std::endl;
// assert(0);
//#endif
assert(connect(mActionAddLayer, SIGNAL(triggered()), this, SLOT(addDatabaseLayer())));
connect(mActionAddLayer, SIGNAL(triggered()), this, SLOT(addDatabaseLayer()));
//
mActionNewVectorLayer= new QAction(QIcon(myIconPath+"/mActionNewVectorLayer.png"), tr("New Vector Layer..."), this);
mActionNewVectorLayer->setShortcut(tr("N","Create a New Vector Layer"));
Expand Down

0 comments on commit c0a0ab1

Please sign in to comment.