Don't copy the object on WriteOne

This commit is contained in:
Patrick Niklaus 2017-05-29 13:07:48 +00:00
parent b29cbd3711
commit 7000cfa472

View File

@ -228,7 +228,7 @@ class FileWriter
template <typename T> void WriteFrom(const T &src) { WriteFrom(&src, 1); }
template <typename T> void WriteOne(const T tmp) { WriteFrom(tmp); }
template <typename T> void WriteOne(const T &tmp) { WriteFrom(tmp); }
void WriteElementCount32(const std::uint32_t count) { WriteOne<std::uint32_t>(count); }
void WriteElementCount64(const std::uint64_t count) { WriteOne<std::uint64_t>(count); }