mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Remove unnecessary const refs.
This commit is contained in:
4
format.h
4
format.h
@ -1549,14 +1549,14 @@ inline Formatter<ANSITerminalSink> PrintColored(Color c, StringRef format) {
|
|||||||
#if FMT_USE_VARIADIC_TEMPLATES && FMT_USE_RVALUE_REFERENCES
|
#if FMT_USE_VARIADIC_TEMPLATES && FMT_USE_RVALUE_REFERENCES
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
inline Writer Format(const StringRef &format, const Args & ... args) {
|
inline Writer Format(StringRef format, const Args & ... args) {
|
||||||
Writer w;
|
Writer w;
|
||||||
w.Format(format, args...);
|
w.Format(format, args...);
|
||||||
return std::move(w);
|
return std::move(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
inline WWriter Format(const WStringRef &format, const Args & ... args) {
|
inline WWriter Format(WStringRef format, const Args & ... args) {
|
||||||
WWriter w;
|
WWriter w;
|
||||||
w.Format(format, args...);
|
w.Format(format, args...);
|
||||||
return std::move(w);
|
return std::move(w);
|
||||||
|
Reference in New Issue
Block a user