[ox/std] Fix copy/move elision in sfmt
This commit is contained in:
parent
1dac98fbc7
commit
bd0b8e4ee9
3
deps/ox/src/ox/std/fmt.hpp
vendored
3
deps/ox/src/ox/std/fmt.hpp
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user