]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/windows/dir.cpp
Use nullptr instead of 0 for pointers
[libs/core.git] / source / fs / windows / dir.cpp
index c6f6b9b6bd29893535ca64dd5b4423b5a39a8ad0..fde0200d029708eccd7476911e5d8dd3fa18c285 100644 (file)
@@ -28,7 +28,7 @@ vector<string> list_filtered(const Path &path, const string &filter)
        vector<string> result;
        WIN32_FIND_DATA entry;
        string pattern = path.str()+"\\*";
-       HANDLE search_handle = FindFirstFileEx(pattern.c_str(), FindExInfoBasic, &entry, FindExSearchNameMatch, 0, 0);
+       HANDLE search_handle = FindFirstFileEx(pattern.c_str(), FindExInfoBasic, &entry, FindExSearchNameMatch, nullptr, 0);
        if(search_handle==INVALID_HANDLE_VALUE)
        {
                DWORD err = GetLastError();