File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ email : morb at ozemail dot com dot au
15
15
/* $Id$ */
16
16
17
17
#include " qgsgeometryvertexindex.h"
18
-
19
- #include < QString>
20
- #include < iostream>
18
+ #include " qgslogger.h"
21
19
22
20
23
21
QgsGeometryVertexIndex::QgsGeometryVertexIndex ()
@@ -53,12 +51,13 @@ void QgsGeometryVertexIndex::push_back(int& i)
53
51
int QgsGeometryVertexIndex::back () const
54
52
{
55
53
#ifdef QGISDEBUG
56
- std::cout << " QgsGeometryVertexIndex::back: mIndex contains: " ;
54
+ QString str ;
57
55
for (std::vector<int >::const_iterator it = mIndex .begin (); it != mIndex .end (); ++it)
58
56
{
59
- std::cout << " " << (*it);
57
+ str += " " ;
58
+ str += QString::number (*it);
60
59
}
61
- std::cout << " ." << std::endl ;
60
+ QgsDebugMsg ( " mIndex contains: " + str + " ." ) ;
62
61
#endif
63
62
return mIndex .back ();
64
63
}
@@ -67,12 +66,13 @@ int QgsGeometryVertexIndex::back() const
67
66
int QgsGeometryVertexIndex::get_at (int i) const
68
67
{
69
68
#ifdef QGISDEBUG
70
- std::cout << " QgsGeometryVertexIndex::get_at: mIndex contains: " ;
69
+ QString str ;
71
70
for (std::vector<int >::const_iterator it = mIndex .begin (); it != mIndex .end (); ++it)
72
71
{
73
- std::cout << " " << (*it);
72
+ str += " " ;
73
+ str += QString::number (*it);
74
74
}
75
- std::cout << " ." << std::endl ;
75
+ QgsDebugMsg ( " mIndex contains: " + str + " ." ) ;
76
76
#endif
77
77
return mIndex [i];
78
78
}
You can’t perform that action at this time.
0 commit comments