std_string.patch

anonymous -, 2006-03-29 03:35 AM

Download (1.9 KB)

View differences:

src/qgsdlgvectorlayerproperties.cpp (working copy)
536 536

  
537 537
    if ( ! coordinateTransform )
538 538
    {
539
        throw QgsCsException( string("unable to get layer coordinate transform object") );
539
        throw QgsCsException( std::string("unable to get layer coordinate transform object") );
540 540
    }
541 541

  
542 542
    QgsRect myProjectedExtent = coordinateTransform->transformBoundingBox(layer->extent());
src/qgsmapcanvas.cpp (working copy)
1353 1353
#ifdef QGISDEBUG 
1354 1354
            std::cout << "Throwing exception "<< __FILE__ << __LINE__ << std::endl; 
1355 1355
#endif
1356
            throw QgsCsException( string("NO COORDINATE TRANSFORM FOUND FOR LAYER") );
1356
            throw QgsCsException( std::string("NO COORDINATE TRANSFORM FOUND FOR LAYER") );
1357 1357
        }
1358 1358

  
1359 1359
        rect = lyr->coordinateTransform()->transformBoundingBox(lyr->bBoxOfSelected());
......
2531 2531
#ifdef QGISDEBUG 
2532 2532
        std::cout << "Throwing exception "<< __FILE__ << __LINE__ << std::endl; 
2533 2533
#endif 
2534
        throw QgsCsException( string("NO COORDINATE TRANSFORM FOUND FOR LAYER") );
2534
        throw QgsCsException( std::string("NO COORDINATE TRANSFORM FOUND FOR LAYER") );
2535 2535
      }
2536 2536

  
2537 2537
      std::cout << "Transformed extent" << 
......
2555 2555
#ifdef QGISDEBUG 
2556 2556
          std::cout << "Throwing exception "<< __FILE__ << __LINE__ << std::endl; 
2557 2557
#endif 
2558
          throw QgsCsException( string("NO COORDINATE TRANSFORM FOUND FOR LAYER") );
2558
          throw QgsCsException( std::string("NO COORDINATE TRANSFORM FOUND FOR LAYER") );
2559 2559
        }
2560 2560

  
2561 2561
        updateFullExtent(lyr->coordinateTransform()->transformBoundingBox(lyr->extent()));