From cfee0cd7d2a704153df73449be38fcef60b958eb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 1 Aug 2020 14:32:23 +0200 Subject: Fix suppressed automatic moves --- ingen/filesystem.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ingen') 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 cpath(realpath(".", nullptr)); - const FilePath path(cpath.get()); - return path; + + return FilePath(cpath.get()); } } // namespace filesystem -- cgit v1.2.1