Skip to content

Commit 050de3f

Browse files
Update SQLiteClassBuilder.cpp
1 parent 521fd85 commit 050de3f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

SQLiteClassBuilder.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@
1515
#include <iostream>
1616
#include <string>
1717
#include <direct.h>
18-
#include <sys/stat.h>
19-
20-
21-
bool FileExists(const std::string &path)
22-
{
23-
struct stat buffer;
24-
return (stat(path.c_str(), &buffer) == 0);
25-
}
2618

2719
const std::string EarlyExitErrMsg = "\
2820
\
@@ -112,7 +104,7 @@ int main(int argc, char* argv[])
112104
exit(0);
113105
}
114106

115-
if (!FileExists(db_file_name))
107+
if (!sqlite3pp::file_exists(db_file_name))
116108
{
117109
V_COUT(ERROR, "Error: Could not find database file '" << db_file_name << "'." << std::endl);
118110
V_COUT(ERROR, EarlyExitErrMsg);

0 commit comments

Comments
 (0)