Skip to content

Commit a61d17a

Browse files
committed
Fix remnant from boost::filesystem
1 parent 62c862d commit a61d17a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/luxrays/utils/config.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ std::filesystem::path GetCacheDir() {
5959
// XDG standard says XDG_CACHE_HOME is unset by default.
6060
std::filesystem::path xdgCacheHome = GetEnvPath("XDG_CACHE_HOME");
6161

62-
if (!xdgCacheHome.size()) {
62+
if (xdgCacheHome.empty()) {
6363
// HOME should never be unset, but we better not want to
6464
// crash if that happens.
6565
std::filesystem::path home = GetEnvPath("HOME");
6666

67-
if (home.size()) {
67+
if (home.empty()) {
6868
xdgCacheHome = home / ".config";
6969
}
7070
else {

0 commit comments

Comments
 (0)