Skip to content

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
 

‎src/core/qgsgeometryvertexindex.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ email : morb at ozemail dot com dot au
1515
/* $Id$ */
1616

1717
#include "qgsgeometryvertexindex.h"
18-
19-
#include <QString>
20-
#include <iostream>
18+
#include "qgslogger.h"
2119

2220

2321
QgsGeometryVertexIndex::QgsGeometryVertexIndex()
@@ -53,12 +51,13 @@ void QgsGeometryVertexIndex::push_back(int& i)
5351
int QgsGeometryVertexIndex::back() const
5452
{
5553
#ifdef QGISDEBUG
56-
std::cout << "QgsGeometryVertexIndex::back: mIndex contains:";
54+
QString str;
5755
for(std::vector<int>::const_iterator it = mIndex.begin(); it != mIndex.end(); ++it)
5856
{
59-
std::cout << " " << (*it);
57+
str += " ";
58+
str += QString::number(*it);
6059
}
61-
std::cout << "." << std::endl;
60+
QgsDebugMsg("mIndex contains:" + str + ".");
6261
#endif
6362
return mIndex.back();
6463
}
@@ -67,12 +66,13 @@ int QgsGeometryVertexIndex::back() const
6766
int QgsGeometryVertexIndex::get_at(int i) const
6867
{
6968
#ifdef QGISDEBUG
70-
std::cout << "QgsGeometryVertexIndex::get_at: mIndex contains:";
69+
QString str;
7170
for(std::vector<int>::const_iterator it = mIndex.begin(); it != mIndex.end(); ++it)
7271
{
73-
std::cout << " " << (*it);
72+
str += " ";
73+
str += QString::number(*it);
7474
}
75-
std::cout << "." << std::endl;
75+
QgsDebugMsg("mIndex contains:" + str + ".");
7676
#endif
7777
return mIndex[i];
7878
}

0 commit comments

Comments
 (0)
Please sign in to comment.