Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove 'using namespace std' from qgisapp
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9212 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 30, 2008
1 parent 9a71b19 commit 49152d2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/app/qgisapp.cpp
Expand Up @@ -185,7 +185,6 @@
#include <windows.h>
#endif

using namespace std;
class QTreeWidgetItem;

/* typedefs for plugins */
Expand Down Expand Up @@ -2664,10 +2663,10 @@ findLayer_( QString const & fileFilters, QDomNode const & constLayerNode )
*/
static
void
findLayers_( QString const & fileFilters, list<QDomNode> const & layerNodes )
findLayers_( QString const & fileFilters, std::list<QDomNode> const & layerNodes )
{

for ( list<QDomNode>::const_iterator i = layerNodes.begin();
for ( std::list<QDomNode>::const_iterator i = layerNodes.begin();
i != layerNodes.end();
++i )
{
Expand Down Expand Up @@ -3163,9 +3162,9 @@ void QgisApp::fileSaveAs()
QSettings settings;
QString lastUsedDir = settings.value( "/UI/lastProjectDir", "." ).toString();

auto_ptr<QFileDialog> saveFileDialog( new QFileDialog( this,
tr( "Choose a file name to save the QGIS project file as" ),
lastUsedDir, QObject::tr( "QGis files (*.qgs)" ) ) );
std::auto_ptr<QFileDialog> saveFileDialog( new QFileDialog( this,
tr( "Choose a file name to save the QGIS project file as" ),
lastUsedDir, QObject::tr( "QGis files (*.qgs)" ) ) );

saveFileDialog->setFileMode( QFileDialog::AnyFile );

Expand Down

0 comments on commit 49152d2

Please sign in to comment.