Skip to content

Commit ca873ab

Browse files
committed
simplecpp.cpp: fixed -Wzero-as-null-pointer-constant Clang warnings
1 parent c9412d7 commit ca873ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3083,7 +3083,7 @@ std::pair<simplecpp::FileData *, bool> simplecpp::FileDataCache::get(const std::
30833083
bool simplecpp::FileDataCache::getFileId(const std::string &path, FileID &id)
30843084
{
30853085
#ifdef SIMPLECPP_WINDOWS
3086-
HANDLE hFile = CreateFileA(path.c_str(), 0, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
3086+
HANDLE hFile = CreateFileA(path.c_str(), 0, FILE_SHARE_READ | FILE_SHARE_WRITE, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
30873087

30883088
if (hFile == INVALID_HANDLE_VALUE)
30893089
return false;

0 commit comments

Comments
 (0)