From cf29c656e44caafee3bb5472ca39d0e60ae51b54 Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 23 May 2016 07:55:29 +0200 Subject: [PATCH] Removed std::move to enable copy elision --- src/filesystem.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filesystem.cc b/src/filesystem.cc index 63730f1..63c5bdd 100644 --- a/src/filesystem.cc +++ b/src/filesystem.cc @@ -25,7 +25,7 @@ int filesystem::read(const std::string &path, Glib::RefPtr text //need to read the whole file to make this work... std::stringstream ss; ss << input.rdbuf(); - Glib::ustring ustr=std::move(ss.str()); + Glib::ustring ustr=ss.str(); bool valid=true; @@ -70,7 +70,7 @@ int filesystem::read_non_utf8(const std::string &path, Glib::RefPtr