diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 14:32:23 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | cfee0cd7d2a704153df73449be38fcef60b958eb (patch) | |
tree | 097f83c2c95c985ae55a2a8b501e4cf60a8d5f21 /ingen | |
parent | a9450b3903b93a5d86c1295d12a4786791186361 (diff) | |
download | ingen-cfee0cd7d2a704153df73449be38fcef60b958eb.tar.gz ingen-cfee0cd7d2a704153df73449be38fcef60b958eb.tar.bz2 ingen-cfee0cd7d2a704153df73449be38fcef60b958eb.zip |
Fix suppressed automatic moves
Diffstat (limited to 'ingen')
-rw-r--r-- | ingen/filesystem.hpp | 4 |
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 |