Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7205 in orxonox.OLD for branches/std/src


Ignore:
Timestamp:
Mar 9, 2006, 8:47:20 PM (19 years ago)
Author:
rennerc
Message:

removed std::string& a = NULL in some headers

Location:
branches/std/src/lib
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/lib/event/key_mapper.h

    r7203 r7205  
    2929  virtual ~KeyMapper();
    3030
    31   void loadKeyBindings(const std::string& fileName = NULL);
     31  void loadKeyBindings(const std::string& fileName = "" );
    3232  void loadKeyBindings(IniParser* iniParser);
    3333
  • branches/std/src/lib/graphics/importer/md2Model.h

    r7203 r7205  
    194194 private:
    195195   bool loadModel(const std::string& fileName);
    196    bool loadSkin(const std::string& fileName = NULL);
     196   bool loadSkin(const std::string& fileName = "");
    197197
    198198 public:
     
    223223
    224224public:
    225   MD2Model(const std::string& modelFileName, const std::string& skinFileName = NULL, float scale = 1.0f);
     225  MD2Model(const std::string& modelFileName, const std::string& skinFileName = "", float scale = 1.0f);
    226226  virtual ~MD2Model();
    227227
  • branches/std/src/lib/graphics/importer/movie_player.h

    r7203 r7205  
    5858public:
    5959
    60   MoviePlayer(const std::string& filename = NULL);
     60  MoviePlayer(const std::string& filename = "");
    6161  virtual ~MoviePlayer();
    6262
  • branches/std/src/lib/graphics/importer/static_model.h

    r7203 r7205  
    9595{
    9696 public:
    97   StaticModel(const std::string& modelName = NULL);
     97  StaticModel(const std::string& modelName = "");
    9898  virtual ~StaticModel();
    9999
  • branches/std/src/lib/graphics/importer/texture.h

    r7203 r7205  
    1818  {
    1919    public:
    20       Texture(const std::string& imageName = NULL, GLenum target = GL_TEXTURE_2D);
     20      Texture(const std::string& imageName = "", GLenum target = GL_TEXTURE_2D);
    2121  //  Texture(TEXTURE_TYPE type, int resolution);
    2222      virtual ~Texture();
  • branches/std/src/lib/graphics/shader.h

    r7203 r7205  
    2727
    2828  public:
    29   Shader(const std::string& vertexShaderFile = NULL, const std::string& fragmentShaderFile = NULL);
     29  Shader(const std::string& vertexShaderFile = "", const std::string& fragmentShaderFile = "");
    3030  virtual ~Shader();
    3131  static Shader* getShader(const std::string& vertexShaderFile, const std::string& fragmentShaderFile);
  • branches/std/src/lib/parser/ini_parser/ini_parser.cc

    r7204 r7205  
    118118    // READING IN THE INI-FILE //
    119119    /////////////////////////////
    120     char lineBuffer[PARSELINELENGHT];
    121     char buffer[PARSELINELENGHT];
     120    char lineBuffer[PARSELINELENGHT+1];
     121    char buffer[PARSELINELENGHT+1];
    122122    const char* lineBegin;
    123123    char* ptr;
     
    129129      if( (ptr = strchr( lineBuffer, '\n')) != NULL)
    130130        *ptr = 0;
     131      else
     132        lineBuffer[PARSELINELENGHT] = 0;
    131133      // cut up to the beginning of the line.
    132134      while((*lineBegin == ' ' || *lineBegin == '\t') && lineBegin < lineBuffer + strlen(lineBuffer))
    133135        ++lineBegin;
     136     
     137      if ( !strcmp( lineBegin, "" ) )
     138        continue;
    134139
    135140      // check if we have a FileComment
     
    181186          --nameEnd;
    182187        nameEnd[1] = '\0';
    183 
     188       
    184189        this->addVar(lineBegin, valueBegin);
    185190        this->setEntryComment();
  • branches/std/src/lib/parser/ini_parser/ini_parser.h

    r7203 r7205  
    6767
    6868
    69     bool addVar(const std::string& entryName, const std::string& value, const std::string& sectionName = NULL);
     69    bool addVar(const std::string& entryName, const std::string& value, const std::string& sectionName = "" );
    7070    const std::string& getVar(const std::string& entryName, const std::string& sectionName, const std::string& defaultValue = "") const;
    7171    void setEntryComment(const std::string& comment, const std::string& entryName, const std::string& sectionName);
     
    9898    std::list<IniSection>::iterator getSectionIT(const std::string& sectionName);
    9999
    100     std::list<IniEntry>::const_iterator getEntryIT(const std::string& entryName, const std::string& sectionName = NULL) const;
    101     std::list<IniEntry>::iterator getEntryIT(const std::string& entryName, const std::string& sectionName = NULL);
     100    std::list<IniEntry>::const_iterator getEntryIT(const std::string& entryName, const std::string& sectionName = "") const;
     101    std::list<IniEntry>::iterator getEntryIT(const std::string& entryName, const std::string& sectionName = "");
    102102
    103103  private:
  • branches/std/src/lib/sound/ogg_player.h

    r7203 r7205  
    2727{
    2828public:
    29   OggPlayer(const std::string& fileName = NULL);
     29  OggPlayer(const std::string& fileName = "");
    3030  virtual ~OggPlayer();
    3131
Note: See TracChangeset for help on using the changeset viewer.