style(*): convert all uses of NULL to nullptr

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x
2025-01-04 00:00:00 +00:00
parent f38452ff94
commit 953147ede7
3 changed files with 15 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ static std::filesystem::path get_executable_directory() {
std::vector<wchar_t> filepath(MAX_PATH);
// Get the executable path, expanding the buffer if necessary
DWORD size = GetModuleFileNameW(NULL, filepath.data(), static_cast<DWORD>(filepath.size()));
DWORD size = GetModuleFileNameW(nullptr, filepath.data(), static_cast<DWORD>(filepath.size()));
if (size == 0) {
logger()->error("Error getting executable path: {}", GetLastError());
return std::filesystem::path();
@@ -29,7 +29,7 @@ static std::filesystem::path get_executable_directory() {
// Resize the buffer if necessary
while (size >= filepath.size()) {
filepath.resize(filepath.size() * 2);
size = GetModuleFileNameW(NULL, filepath.data(), static_cast<DWORD>(filepath.size()));
size = GetModuleFileNameW(nullptr, filepath.data(), static_cast<DWORD>(filepath.size()));
if (size == 0) {
logger()->error("Error getting executable path: {}", GetLastError());
return std::filesystem::path();