[ox/std] Fix copy/move elision in sfmt

This commit is contained in:
Gary Talent 2021-07-24 20:35:00 -05:00
parent 1dac98fbc7
commit bd0b8e4ee9

View File

@ -17,6 +17,7 @@
#endif #endif
#include "assert.hpp" #include "assert.hpp"
#include "error.hpp"
#include "bstring.hpp" #include "bstring.hpp"
#include "string.hpp" #include "string.hpp"
#include "strops.hpp" #include "strops.hpp"
@ -180,7 +181,7 @@ StringType sfmt(const char *fmt, Args... args) noexcept {
const auto &s = fmtSegments.segments[i + 1]; const auto &s = fmtSegments.segments[i + 1];
oxIgnoreError(out.append(s.str, s.length)); oxIgnoreError(out.append(s.str, s.length));
} }
return move(out); return out;
} }
} }