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

Unified Diff: third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp b/third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp
index 33c66ce31cfd02e8763f2318b4c145b209e3b25f..f03f078b8837ce473069db8a7cba083a3ffc74a7 100644
--- a/third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp
+++ b/third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp
@@ -65,7 +65,7 @@ SimpleFontData::SimpleFontData(const FontPlatformData& platformData,
m_isTextOrientationFallback(isTextOrientationFallback),
m_verticalData(nullptr),
m_hasVerticalGlyphs(false),
- m_customFontData(customData) {
+ m_customFontData(std::move(customData)) {
platformInit(subpixelAscentDescent);
platformGlyphInit();
if (platformData.isVerticalAnyUpright() && !isTextOrientationFallback) {
@@ -84,7 +84,7 @@ SimpleFontData::SimpleFontData(PassRefPtr<CustomFontData> customData,
m_isTextOrientationFallback(false),
m_verticalData(nullptr),
m_hasVerticalGlyphs(false),
- m_customFontData(customData) {}
+ m_customFontData(std::move(customData)) {}
void SimpleFontData::platformInit(bool subpixelAscentDescent) {
if (!m_platformData.size()) {

Powered by Google App Engine
This is Rietveld 408576698