Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: net/quic/platform/api/quic_str_cat.h

Issue 2851503002: Remove std::move from return statements. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/platform/api/quic_ptr_util.h ('k') | net/quic/platform/impl/quic_ptr_util_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_ 5 #ifndef NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_
6 #define NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_ 6 #define NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_
7 7
8 #include <string>
9 #include <utility>
10
8 #include "net/quic/platform/impl/quic_str_cat_impl.h" 11 #include "net/quic/platform/impl/quic_str_cat_impl.h"
9 12
10 namespace net { 13 namespace net {
11 14
12 template <typename... Args> 15 template <typename... Args>
13 inline std::string QuicStrCat(const Args&... args) { 16 inline std::string QuicStrCat(const Args&... args) {
14 return std::move(QuicStrCatImpl(std::forward<const Args&>(args)...)); 17 return QuicStrCatImpl(std::forward<const Args&>(args)...);
15 } 18 }
16 19
17 template <typename... Args> 20 template <typename... Args>
18 inline std::string QuicStringPrintf(const Args&... args) { 21 inline std::string QuicStringPrintf(const Args&... args) {
19 return std::move(QuicStringPrintfImpl(std::forward<const Args&>(args)...)); 22 return QuicStringPrintfImpl(std::forward<const Args&>(args)...);
20 } 23 }
21 24
22 } // namespace net 25 } // namespace net
23 26
24 #endif // NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_ 27 #endif // NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_
OLDNEW
« no previous file with comments | « net/quic/platform/api/quic_ptr_util.h ('k') | net/quic/platform/impl/quic_ptr_util_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698