changeset 72:b43f40857609

Common: add explicit move because of unique_ptr
author David Demelier <markand@malikania.fr>
date Thu, 22 Dec 2016 09:13:01 +0100
parents 6950ea5c78c6
children efe1a7fb43f8
files libcommon/malikania/resources_locator.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libcommon/malikania/resources_locator.cpp	Wed Dec 21 13:12:50 2016 +0100
+++ b/libcommon/malikania/resources_locator.cpp	Thu Dec 22 09:13:01 2016 +0100
@@ -50,7 +50,7 @@
         throw std::runtime_error(std::strerror(errno));
     }
 
-    return ptr;
+    return std::move(ptr);
 }
 
 } // !mlk