- Timestamp:
- Mar 9, 2006, 8:47:20 PM (19 years ago)
- Location:
- branches/std/src/lib
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/event/key_mapper.h
r7203 r7205 29 29 virtual ~KeyMapper(); 30 30 31 void loadKeyBindings(const std::string& fileName = NULL);31 void loadKeyBindings(const std::string& fileName = "" ); 32 32 void loadKeyBindings(IniParser* iniParser); 33 33 -
branches/std/src/lib/graphics/importer/md2Model.h
r7203 r7205 194 194 private: 195 195 bool loadModel(const std::string& fileName); 196 bool loadSkin(const std::string& fileName = NULL);196 bool loadSkin(const std::string& fileName = ""); 197 197 198 198 public: … … 223 223 224 224 public: 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); 226 226 virtual ~MD2Model(); 227 227 -
branches/std/src/lib/graphics/importer/movie_player.h
r7203 r7205 58 58 public: 59 59 60 MoviePlayer(const std::string& filename = NULL);60 MoviePlayer(const std::string& filename = ""); 61 61 virtual ~MoviePlayer(); 62 62 -
branches/std/src/lib/graphics/importer/static_model.h
r7203 r7205 95 95 { 96 96 public: 97 StaticModel(const std::string& modelName = NULL);97 StaticModel(const std::string& modelName = ""); 98 98 virtual ~StaticModel(); 99 99 -
branches/std/src/lib/graphics/importer/texture.h
r7203 r7205 18 18 { 19 19 public: 20 Texture(const std::string& imageName = NULL, GLenum target = GL_TEXTURE_2D);20 Texture(const std::string& imageName = "", GLenum target = GL_TEXTURE_2D); 21 21 // Texture(TEXTURE_TYPE type, int resolution); 22 22 virtual ~Texture(); -
branches/std/src/lib/graphics/shader.h
r7203 r7205 27 27 28 28 public: 29 Shader(const std::string& vertexShaderFile = NULL, const std::string& fragmentShaderFile = NULL);29 Shader(const std::string& vertexShaderFile = "", const std::string& fragmentShaderFile = ""); 30 30 virtual ~Shader(); 31 31 static Shader* getShader(const std::string& vertexShaderFile, const std::string& fragmentShaderFile); -
branches/std/src/lib/parser/ini_parser/ini_parser.cc
r7204 r7205 118 118 // READING IN THE INI-FILE // 119 119 ///////////////////////////// 120 char lineBuffer[PARSELINELENGHT ];121 char buffer[PARSELINELENGHT ];120 char lineBuffer[PARSELINELENGHT+1]; 121 char buffer[PARSELINELENGHT+1]; 122 122 const char* lineBegin; 123 123 char* ptr; … … 129 129 if( (ptr = strchr( lineBuffer, '\n')) != NULL) 130 130 *ptr = 0; 131 else 132 lineBuffer[PARSELINELENGHT] = 0; 131 133 // cut up to the beginning of the line. 132 134 while((*lineBegin == ' ' || *lineBegin == '\t') && lineBegin < lineBuffer + strlen(lineBuffer)) 133 135 ++lineBegin; 136 137 if ( !strcmp( lineBegin, "" ) ) 138 continue; 134 139 135 140 // check if we have a FileComment … … 181 186 --nameEnd; 182 187 nameEnd[1] = '\0'; 183 188 184 189 this->addVar(lineBegin, valueBegin); 185 190 this->setEntryComment(); -
branches/std/src/lib/parser/ini_parser/ini_parser.h
r7203 r7205 67 67 68 68 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 = "" ); 70 70 const std::string& getVar(const std::string& entryName, const std::string& sectionName, const std::string& defaultValue = "") const; 71 71 void setEntryComment(const std::string& comment, const std::string& entryName, const std::string& sectionName); … … 98 98 std::list<IniSection>::iterator getSectionIT(const std::string& sectionName); 99 99 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 = ""); 102 102 103 103 private: -
branches/std/src/lib/sound/ogg_player.h
r7203 r7205 27 27 { 28 28 public: 29 OggPlayer(const std::string& fileName = NULL);29 OggPlayer(const std::string& fileName = ""); 30 30 virtual ~OggPlayer(); 31 31
Note: See TracChangeset
for help on using the changeset viewer.