From 2980d68976c520e0bb9a5342db3f25ae99de7d08 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Fri, 14 Jul 2023 08:06:50 +0200 Subject: [PATCH] fix: remove superfluous void and outdated comment Signed-off-by: Christopher Arndt --- standardpaths.cpp | 4 ++-- standardpaths.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/standardpaths.cpp b/standardpaths.cpp index cc3ac09..068ef17 100644 --- a/standardpaths.cpp +++ b/standardpaths.cpp @@ -5,7 +5,7 @@ namespace fs = std::filesystem; #ifdef _WIN32 -fs::path getWindowsDirectory(void) { +fs::path getWindowsDirectory() { wchar_t wcp[MAX_PATH]; fs::path windowsDir(""); @@ -30,7 +30,7 @@ fs::path getWindowsKnownFolder(REFKNOWNFOLDERID folder_guid) { hr = SHGetKnownFolderPath(folder_guid, 0, NULL, &wcp); if (SUCCEEDED (hr)) { - specialFolder = widetoutf8(wcp); // XXX: convert to UTF-8 + specialFolder = widetoutf8(wcp); } CoTaskMemFree(wcp); diff --git a/standardpaths.hpp b/standardpaths.hpp index 27eb424..9ec7aa2 100644 --- a/standardpaths.hpp +++ b/standardpaths.hpp @@ -17,7 +17,7 @@ #ifdef _WIN32 -std::filesystem::path getWindowsDirectory(void); +std::filesystem::path getWindowsDirectory(); std::filesystem::path getWindowsKnownFolder(REFKNOWNFOLDERID folder_guid); #endif std::filesystem::path getHomeDir();