- Timestamp:
- May 15, 2006, 2:54:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/util/file.cc
r7618 r7619 62 62 { 63 63 this->_handle = 0; 64 std::string name = this->_name;65 64 66 65 this->_status = new struct stat; 67 66 // Check the End of the FileName and chop away any \ and // 68 if (this->_name[this->_name.size()-1] == '/' || 69 this->_name[this->_name.size()-1] == '\\') 70 name.resize(name.size()-1); 71 72 if (stat(name.c_str(), this->_status)) 67 /* std::string name = this->_name; 68 if (this->_name[this->_name.size()-1] == '/' || 69 this->_name[this->_name.size()-1] == '\\') 70 name.resize(name.size()-1);*/ 71 72 if (stat(this->_name.c_str(), this->_status)) 73 73 { 74 74 delete this->_status; … … 250 250 std::string homeDir; 251 251 #ifdef __WIN32__ 252 253 #else 254 255 #endif 256 252 homeDir = getenv("USERPROFILE"); 253 #else 254 homeDir = getenv("HOME"); 255 #endif 256 fileName = homeDir + fileName.substr(1); 257 257 } 258 258
Note: See TracChangeset
for help on using the changeset viewer.