fix: remove superfluous void and outdated comment
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
This commit is contained in:
parent
5384e6bc7a
commit
2980d68976
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue