Mercurial > minori
diff src/core/filesystem.cpp @ 63:3d2decf093bb
*: fix many clang warnings
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 01 Oct 2023 06:39:47 -0400 |
parents | 4c6dd5999b39 |
children | fe719c109dbc |
line wrap: on
line diff
--- a/src/core/filesystem.cpp Sun Oct 01 06:16:06 2023 -0400 +++ b/src/core/filesystem.cpp Sun Oct 01 06:39:47 2023 -0400 @@ -23,9 +23,15 @@ namespace Filesystem { -Path::Path() { _path = ""; } -Path::Path(const std::string& path) { _path = path; } -Path::Path(const Path& path) { _path = path.GetPath(); } +Path::Path() { + _path = ""; +} +Path::Path(const std::string& path) { + _path = path; +} +Path::Path(const Path& path) { + _path = path.GetPath(); +} bool Path::CreateDirectories() const { std::string temp = ""; @@ -90,7 +96,8 @@ std::string ret = ""; #ifdef WIN32 std::wstring buf(MAX_PATH, '\0'); - if (SHGetFolderPathAndSubDirW(NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, CONFIG_WDIR, &buf.front()) == S_OK) { + if (SHGetFolderPathAndSubDirW(NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, CONFIG_WDIR, &buf.front()) == + S_OK) { buf.resize(buf.find('\0')); ret += Strings::ToUtf8String(buf); }