Replace SG_USE_STD() by using std::
This commit is contained in:
@@ -36,8 +36,8 @@
|
||||
|
||||
#include <simgear/debug/debug_types.h>
|
||||
|
||||
SG_USING_STD(streambuf);
|
||||
SG_USING_STD(ostream);
|
||||
using std::streambuf;
|
||||
using std::ostream;
|
||||
|
||||
//
|
||||
// TODO:
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
|
||||
#include <simgear/constants.h>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(map);
|
||||
SG_USING_STD(string);
|
||||
using std::vector;
|
||||
using std::map;
|
||||
using std::string;
|
||||
|
||||
const double SGMetarNaN = -1E20;
|
||||
#define NaN SGMetarNaN
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
using std::vector;
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(string);
|
||||
using std::vector;
|
||||
using std::string;
|
||||
|
||||
class SGLightning;
|
||||
class SGSoundMgr;
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "stardata.hxx"
|
||||
|
||||
#if defined (_MSC_VER)
|
||||
SG_USING_STD(getline);
|
||||
using std::getline;
|
||||
#endif
|
||||
|
||||
// Constructor
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
#include "sg_binobj.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
int main( int argc, char **argv ) {
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(string);
|
||||
using std::vector;
|
||||
using std::string;
|
||||
|
||||
|
||||
#define SG_IO_MAX_MSG_SIZE 16384
|
||||
|
||||
@@ -8,8 +8,8 @@ static const int sgEndianTest = 1;
|
||||
#define sgIsLittleEndian (*((char *) &sgEndianTest ) != 0)
|
||||
#define sgIsBigEndian (*((char *) &sgEndianTest ) == 0)
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
int main() {
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
#include "sg_file.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
|
||||
SGFile::SGFile(const string &file, bool repeat_)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
#include "iochannel.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "sg_serial.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
|
||||
SGSerial::SGSerial( const string& device_name, const string& baud_rate ) :
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
#include "iochannel.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
/**
|
||||
* A serial I/O class based on SGIOChannel.
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
#include <plib/netSocket.h>
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
#define SG_MAX_SOCKET_QUEUE 32
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#include <simgear/math/sg_types.hxx>
|
||||
#include <simgear/io/iochannel.hxx>
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
/**
|
||||
* A UDP socket I/O class based on SGIOChannel and plib/net.
|
||||
|
||||
@@ -14,8 +14,8 @@ static const int sgEndianTest = 1;
|
||||
#define sgIsLittleEndian (*((char *) &sgEndianTest ) != 0)
|
||||
#define sgIsBigEndian (*((char *) &sgEndianTest ) == 0)
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
int main() {
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
#include "sg_socket.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(cout);
|
||||
using std::string;
|
||||
using std::cout;
|
||||
|
||||
class TcpServer
|
||||
{
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include "interpolater.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
// Constructor -- starts with an empty table.
|
||||
SGInterpTable::SGInterpTable()
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include <map>
|
||||
|
||||
#include <string>
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
class SGPropertyNode;
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
|
||||
#include <simgear/math/point3d.hxx>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(string);
|
||||
using std::vector;
|
||||
using std::string;
|
||||
|
||||
/** STL vector list of ints */
|
||||
typedef vector < int > int_list;
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include <simgear/math/sg_types.hxx>
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
typedef int mode_t;
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
#include <string>
|
||||
|
||||
#include <vector>
|
||||
SG_USING_STD(vector);
|
||||
using std::vector;
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
namespace simgear {
|
||||
namespace strutils {
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(string);
|
||||
using std::vector;
|
||||
using std::string;
|
||||
|
||||
class SGTabbedValues
|
||||
{
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
#include <iostream>
|
||||
#include "tabbed_values.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
|
||||
int main (int ac, char ** av)
|
||||
|
||||
@@ -149,8 +149,8 @@ enter this in the official comments in case I forget again. :-)
|
||||
|
||||
#include "texcoord.hxx"
|
||||
|
||||
// SG_USING_STD(cout);
|
||||
// SG_USING_STD(endl);
|
||||
// using std::cout;
|
||||
// using std::endl;
|
||||
|
||||
|
||||
#define FG_STANDARD_TEXTURE_DIMENSION 1000.0 // meters
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#include "props.hxx"
|
||||
#include "condition.hxx"
|
||||
|
||||
SG_USING_STD(istream);
|
||||
SG_USING_STD(ostream);
|
||||
using std::istream;
|
||||
using std::ostream;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
SG_USING_STD(istream);
|
||||
SG_USING_STD(ifstream);
|
||||
SG_USING_STD(ostream);
|
||||
SG_USING_STD(ofstream);
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(map);
|
||||
using std::istream;
|
||||
using std::ifstream;
|
||||
using std::ostream;
|
||||
using std::ofstream;
|
||||
using std::string;
|
||||
using std::vector;
|
||||
using std::map;
|
||||
|
||||
using std::endl;
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
#include "props.hxx"
|
||||
#include "props_io.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
using std::vector;
|
||||
|
||||
#include <simgear/route/waypoint.hxx>
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#include "route.hxx"
|
||||
#include "waypoint.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
void dump_route(const SGRoute& route, const char* message)
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
#include "waypoint.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
int main() {
|
||||
SGWayPoint a1(-93.216923, 44.880547, 0.0, SGWayPoint::WGS84, "KMSP");
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <map>
|
||||
SG_USING_STD(map);
|
||||
using std::map;
|
||||
|
||||
#include <plib/ul.h>
|
||||
|
||||
|
||||
@@ -47,9 +47,9 @@
|
||||
|
||||
#include "matmodel.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(map);
|
||||
using std::string;
|
||||
using std::vector;
|
||||
using std::map;
|
||||
|
||||
|
||||
class SGMaterialGlyph;
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
#include "matlib.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
// Constructor
|
||||
SGMaterialLib::SGMaterialLib ( void ) {
|
||||
|
||||
@@ -43,10 +43,10 @@
|
||||
class SGMaterial;
|
||||
class SGPropertyNode;
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(map);
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(less);
|
||||
using std::string;
|
||||
using std::map;
|
||||
using std::vector;
|
||||
using std::less;
|
||||
|
||||
// Material management class
|
||||
class SGMaterialLib {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include <map>
|
||||
SG_USING_STD(map);
|
||||
using std::map;
|
||||
|
||||
#include <osg/AlphaFunc>
|
||||
#include <osg/Group>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "model.hxx"
|
||||
|
||||
SG_USING_STD(vector);
|
||||
using std::vector;
|
||||
|
||||
osg::Texture2D*
|
||||
SGLoadTexture2D(bool staticTexture, const std::string& path,
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
#include <vector>
|
||||
#include <set>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(set);
|
||||
using std::vector;
|
||||
using std::set;
|
||||
|
||||
#include <osg/Node>
|
||||
#include <osg/Texture2D>
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
|
||||
#include <simgear/props/props.hxx>
|
||||
|
||||
SG_USING_STD(map);
|
||||
SG_USING_STD(string);
|
||||
using std::map;
|
||||
using std::string;
|
||||
|
||||
namespace simgear {
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(map);
|
||||
using std::vector;
|
||||
using std::map;
|
||||
|
||||
class ssgBranch;
|
||||
class ssgLeaf;
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include <simgear/structure/SGReferenced.hxx>
|
||||
|
||||
#include <string>
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
#include <osg/ref_ptr>
|
||||
#include <osg/Array>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
using std::vector;
|
||||
|
||||
#include <simgear/environment/visual_enviro.hxx>
|
||||
#include "sky.hxx"
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <vector>
|
||||
|
||||
|
||||
SG_USING_STD(vector);
|
||||
using std::vector;
|
||||
|
||||
class SGNewCloud;
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
|
||||
#include "bbcache.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
/**
|
||||
* 3D cloud class.
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
#include <simgear/scene/sky/oursun.hxx>
|
||||
#include <simgear/scene/sky/stars.hxx>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
using std::vector;
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <simgear/math/point3d.hxx>
|
||||
#include <simgear/scene/tgdb/TileEntry.hxx>
|
||||
|
||||
SG_USING_STD(map);
|
||||
using std::map;
|
||||
|
||||
namespace simgear {
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
#include "ReaderWriterSTG.hxx"
|
||||
#include "TileEntry.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
using namespace simgear;
|
||||
|
||||
ModelLoadHelper *TileEntry::_modelLoader=0;
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
namespace simgear {
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#define SIGN "OBJECT_SIGN: "
|
||||
#define RWY "OBJECT_RUNWAY_SIGN: "
|
||||
|
||||
SG_USING_STD(vector);
|
||||
using std::vector;
|
||||
|
||||
// for temporary storage of sign elements
|
||||
struct element_info {
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
class SGMaterialLib; // forward declaration
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
|
||||
// Generate a generic sign
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
#include "SGOceanTile.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
class SGBucket;
|
||||
class SGMaterialLib;
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
#include "SGLightBin.hxx"
|
||||
#include "SGDirectionalLightBin.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
// Specify the way we want to draw directional point lights (assuming the
|
||||
// appropriate extensions are available.)
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include <osg/Geometry>
|
||||
#include <osg/Group>
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
class SGMaterial;
|
||||
class SGMatModel;
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
SG_USING_STD(map);
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(string);
|
||||
using std::map;
|
||||
using std::vector;
|
||||
using std::string;
|
||||
|
||||
class Shader {
|
||||
public:
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
#include <simgear/compiler.h>
|
||||
#include <string>
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
// if someone know how to do this all with C++ streams let me know
|
||||
// #include <stdio.h>
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
|
||||
#include "serial.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
int main () {
|
||||
SGSerialPort port;
|
||||
|
||||
@@ -52,8 +52,8 @@
|
||||
|
||||
#include "sample_openal.hxx"
|
||||
|
||||
SG_USING_STD(map);
|
||||
SG_USING_STD(string);
|
||||
using std::map;
|
||||
using std::string;
|
||||
|
||||
|
||||
typedef map < string, SGSharedPtr<SGSoundSample> > sample_map;
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
#include <simgear/props/props.hxx>
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(map);
|
||||
SG_USING_STD(vector);
|
||||
using std::string;
|
||||
using std::map;
|
||||
using std::vector;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <simgear/compiler.h>
|
||||
#include <string>
|
||||
|
||||
SG_USING_STD(string);
|
||||
using std::string;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
SG_USING_STD(ifstream);
|
||||
using std::ifstream;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(istream);
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
using std::istream;
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user