summaryrefslogtreecommitdiffstats
path: root/ingen/filesystem.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ingen/filesystem.hpp')
-rw-r--r--ingen/filesystem.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ingen/filesystem.hpp b/ingen/filesystem.hpp
index 5156eb79..3b2bc302 100644
--- a/ingen/filesystem.hpp
+++ b/ingen/filesystem.hpp
@@ -75,8 +75,8 @@ inline FilePath current_path()
struct Freer { void operator()(char* const ptr) { free(ptr); } };
std::unique_ptr<char, Freer> cpath(realpath(".", nullptr));
- const FilePath path(cpath.get());
- return path;
+
+ return FilePath(cpath.get());
}
} // namespace filesystem