File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 36
36
#include < qregexp.h>
37
37
#include < qtabwidget.h>
38
38
39
+ #include < string>
40
+
39
41
#include " qgis.h"
40
42
#include " qgsrect.h"
41
43
#include " qgsfield.h"
@@ -536,7 +538,7 @@ QString QgsDlgVectorLayerProperties::getMetadata()
536
538
537
539
if ( ! coordinateTransform )
538
540
{
539
- throw QgsCsException ( string (" unable to get layer coordinate transform object" ) );
541
+ throw QgsCsException ( std:: string (" unable to get layer coordinate transform object" ) );
540
542
}
541
543
542
544
QgsRect myProjectedExtent = coordinateTransform->transformBoundingBox (layer->extent ());
Original file line number Diff line number Diff line change 22
22
#include < iosfwd>
23
23
#include < cmath>
24
24
#include < cfloat>
25
+ #include < string>
25
26
26
27
// added double sentinals to take load off gcc 3.3.3 pre-processor, which was dying
27
28
@@ -1353,7 +1354,7 @@ void QgsMapCanvas::zoomToSelected()
1353
1354
#ifdef QGISDEBUG
1354
1355
std::cout << " Throwing exception " << __FILE__ << __LINE__ << std::endl;
1355
1356
#endif
1356
- throw QgsCsException ( string (" NO COORDINATE TRANSFORM FOUND FOR LAYER" ) );
1357
+ throw QgsCsException ( std:: string (" NO COORDINATE TRANSFORM FOUND FOR LAYER" ) );
1357
1358
}
1358
1359
1359
1360
rect = lyr->coordinateTransform ()->transformBoundingBox (lyr->bBoxOfSelected ());
@@ -2531,7 +2532,7 @@ void QgsMapCanvas::recalculateExtents()
2531
2532
#ifdef QGISDEBUG
2532
2533
std::cout << " Throwing exception " << __FILE__ << __LINE__ << std::endl;
2533
2534
#endif
2534
- throw QgsCsException ( string (" NO COORDINATE TRANSFORM FOUND FOR LAYER" ) );
2535
+ throw QgsCsException ( std:: string (" NO COORDINATE TRANSFORM FOUND FOR LAYER" ) );
2535
2536
}
2536
2537
2537
2538
std::cout << " Transformed extent" <<
@@ -2555,7 +2556,7 @@ void QgsMapCanvas::recalculateExtents()
2555
2556
#ifdef QGISDEBUG
2556
2557
std::cout << " Throwing exception " << __FILE__ << __LINE__ << std::endl;
2557
2558
#endif
2558
- throw QgsCsException ( string (" NO COORDINATE TRANSFORM FOUND FOR LAYER" ) );
2559
+ throw QgsCsException ( std:: string (" NO COORDINATE TRANSFORM FOUND FOR LAYER" ) );
2559
2560
}
2560
2561
2561
2562
updateFullExtent (lyr->coordinateTransform ()->transformBoundingBox (lyr->extent ()));
You can’t perform that action at this time.
0 commit comments