Skip to content

Commit

Permalink
Changed debug messages from std::cout to QgsDebugMsg
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6903 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 20, 2007
1 parent f05db2a commit b09c249
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/core/qgsgeometryvertexindex.cpp
Expand Up @@ -15,9 +15,7 @@ email : morb at ozemail dot com dot au
/* $Id$ */

#include "qgsgeometryvertexindex.h"

#include <QString>
#include <iostream>
#include "qgslogger.h"


QgsGeometryVertexIndex::QgsGeometryVertexIndex()
Expand Down Expand Up @@ -53,12 +51,13 @@ void QgsGeometryVertexIndex::push_back(int& i)
int QgsGeometryVertexIndex::back() const
{
#ifdef QGISDEBUG
std::cout << "QgsGeometryVertexIndex::back: mIndex contains:";
QString str;
for(std::vector<int>::const_iterator it = mIndex.begin(); it != mIndex.end(); ++it)
{
std::cout << " " << (*it);
str += " ";
str += QString::number(*it);
}
std::cout << "." << std::endl;
QgsDebugMsg("mIndex contains:" + str + ".");
#endif
return mIndex.back();
}
Expand All @@ -67,12 +66,13 @@ int QgsGeometryVertexIndex::back() const
int QgsGeometryVertexIndex::get_at(int i) const
{
#ifdef QGISDEBUG
std::cout << "QgsGeometryVertexIndex::get_at: mIndex contains:";
QString str;
for(std::vector<int>::const_iterator it = mIndex.begin(); it != mIndex.end(); ++it)
{
std::cout << " " << (*it);
str += " ";
str += QString::number(*it);
}
std::cout << "." << std::endl;
QgsDebugMsg("mIndex contains:" + str + ".");
#endif
return mIndex[i];
}
Expand Down

0 comments on commit b09c249

Please sign in to comment.