Browse Source

Text: remove superfluous std::move().

Clang 3.7 complained that it would prevent copy elision optimizations.
Thanks, Clang! On the other hand, I have a weird feeling that this would
break the build somewhere else...
pull/114/merge
Vladimír Vondruš 11 years ago
parent
commit
3adc93888b
  1. 4
      src/Magnum/Text/AbstractFontConverter.cpp

4
src/Magnum/Text/AbstractFontConverter.cpp

@ -67,7 +67,7 @@ std::vector<std::pair<std::string, Containers::Array<char>>> AbstractFontConvert
"Text::AbstractFontConverter::exportFontToData(): feature advertised but not implemented", {});
std::vector<std::pair<std::string, Containers::Array<char>>> out;
out.emplace_back(filename, std::move(doExportFontToSingleData(font, cache, characters)));
out.emplace_back(filename, doExportFontToSingleData(font, cache, characters));
return out;
}
@ -119,7 +119,7 @@ std::vector<std::pair<std::string, Containers::Array<char>>> AbstractFontConvert
"Text::AbstractFontConverter::exportGlyphCacheToData(): feature advertised but not implemented", {});
std::vector<std::pair<std::string, Containers::Array<char>>> out;
out.emplace_back(filename, std::move(doExportGlyphCacheToSingleData(cache)));
out.emplace_back(filename, doExportGlyphCacheToSingleData(cache));
return out;
}

Loading…
Cancel
Save