Ignore:
Timestamp:
04/11/2007 16:33:53 (5 years ago)
Author:
chris
Message:

Allow ObjectExists?() to take a std::string instead of just char *.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/Utils.cpp

    r1549 r1920  
    136136// 
    137137// Function 
    138 //              Name:    ObjectExists(const char *) 
     138//              Name:    ObjectExists(const std::string& rFilename) 
    139139//              Purpose: Does a object exist, and if so, is it a file or a directory? 
    140140//              Created: 23/11/03 
    141141// 
    142142// -------------------------------------------------------------------------- 
    143 int ObjectExists(const char *Filename) 
     143int ObjectExists(const std::string& rFilename) 
    144144{ 
    145145        struct stat st; 
    146         if(::stat(Filename, &st) != 0) 
     146        if(::stat(rFilename.c_str(), &st) != 0) 
    147147        { 
    148148                if(errno == ENOENT) 
Note: See TracChangeset for help on using the changeset viewer.