We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a50010 commit f19cfecCopy full SHA for f19cfec
src/clutils/dirobj.h
@@ -61,10 +61,10 @@ class SC_UTILS_EXPORT DirObj {
61
const char * File( int index );
62
// check for file in the currently loaded directory
63
bool FileExists( const char * file ) {
64
- return Index( file ) ? 1 : 0;
+ return Index( file ) != -1;
65
}
66
bool FileExists( const std::string & file ) {
67
- return Index( file.c_str() ) ? true : false;
+ return Index( file.c_str() ) != -1;
68
69
int Count();
70
0 commit comments