Skip to content

Commit ddcb84b

Browse files
committed
Fix Windows std::filesystem::path conversion error
1 parent f9e2b23 commit ddcb84b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/src/FilesystemUtil.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ std::filesystem::path getCesiumCacheDirectory() {
3232
// Should we create the directory if it doesn't exist? It's hard to believe that Omniverse
3333
// won't have already created it.
3434
}
35-
std::string homeDir = getUserHomeDirectory();
36-
if (!homeDir.empty()) {
37-
std::filesystem::path homeDirPath(homeDir);
35+
auto homeDirPath = getUserHomeDirectory();
36+
if (!homeDirPath.empty()) {
3837
auto cacheDirPath = homeDirPath / ".nvidia-omniverse";
3938
if (exists(cacheDirPath)) {
4039
return cacheDirPath;

0 commit comments

Comments
 (0)