Browse Source

Removed std::move to enable copy elision

merge-requests/365/head
eidheim 10 years ago
parent
commit
cf29c656e4
  1. 4
      src/filesystem.cc

4
src/filesystem.cc

@ -25,7 +25,7 @@ int filesystem::read(const std::string &path, Glib::RefPtr<Gtk::TextBuffer> text
//need to read the whole file to make this work... //need to read the whole file to make this work...
std::stringstream ss; std::stringstream ss;
ss << input.rdbuf(); ss << input.rdbuf();
Glib::ustring ustr=std::move(ss.str()); Glib::ustring ustr=ss.str();
bool valid=true; bool valid=true;
@ -70,7 +70,7 @@ int filesystem::read_non_utf8(const std::string &path, Glib::RefPtr<Gtk::TextBuf
//need to read the whole file to make this work... //need to read the whole file to make this work...
std::stringstream ss; std::stringstream ss;
ss << input.rdbuf(); ss << input.rdbuf();
Glib::ustring ustr=std::move(ss.str()); Glib::ustring ustr=ss.str();
bool valid=true; bool valid=true;
Glib::ustring::iterator iter; Glib::ustring::iterator iter;

Loading…
Cancel
Save