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;
|
namespace fs = std::filesystem;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
fs::path getWindowsDirectory(void) {
|
fs::path getWindowsDirectory() {
|
||||||
wchar_t wcp[MAX_PATH];
|
wchar_t wcp[MAX_PATH];
|
||||||
fs::path windowsDir("");
|
fs::path windowsDir("");
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ fs::path getWindowsKnownFolder(REFKNOWNFOLDERID folder_guid) {
|
||||||
hr = SHGetKnownFolderPath(folder_guid, 0, NULL, &wcp);
|
hr = SHGetKnownFolderPath(folder_guid, 0, NULL, &wcp);
|
||||||
|
|
||||||
if (SUCCEEDED (hr)) {
|
if (SUCCEEDED (hr)) {
|
||||||
specialFolder = widetoutf8(wcp); // XXX: convert to UTF-8
|
specialFolder = widetoutf8(wcp);
|
||||||
}
|
}
|
||||||
|
|
||||||
CoTaskMemFree(wcp);
|
CoTaskMemFree(wcp);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
std::filesystem::path getWindowsDirectory(void);
|
std::filesystem::path getWindowsDirectory();
|
||||||
std::filesystem::path getWindowsKnownFolder(REFKNOWNFOLDERID folder_guid);
|
std::filesystem::path getWindowsKnownFolder(REFKNOWNFOLDERID folder_guid);
|
||||||
#endif
|
#endif
|
||||||
std::filesystem::path getHomeDir();
|
std::filesystem::path getHomeDir();
|
||||||
|
|
Loading…
Reference in New Issue