fix: remove superfluous void and outdated comment

Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
This commit is contained in:
Christopher Arndt 2023-07-14 08:06:50 +02:00
parent 5384e6bc7a
commit 2980d68976
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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();