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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 years, 11 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/core/inspector/InspectorStyleSheet.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp b/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
index 735e4e6127ba50f79deae67ae90ad789b5339d52..5aa01a313e71cbf31a1a443525fabe2dfe028a24 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
@@ -194,7 +194,7 @@ void StyleSheetHandler::startRuleHeader(StyleRule::RuleType type,
RefPtr<CSSRuleSourceData> data = CSSRuleSourceData::create(type);
data->ruleHeaderRange.start = offset;
m_currentRuleData = data.get();
- m_currentRuleDataStack.push_back(data.release());
+ m_currentRuleDataStack.push_back(std::move(data));
}
template <typename CharacterType>
@@ -242,7 +242,7 @@ void StyleSheetHandler::endRuleBody(unsigned offset) {
RefPtr<CSSRuleSourceData> rule = popRuleData();
fixUnparsedPropertyRanges(rule.get());
- addNewRuleToSourceTree(rule.release());
+ addNewRuleToSourceTree(std::move(rule));
}
void StyleSheetHandler::addNewRuleToSourceTree(
@@ -1989,7 +1989,7 @@ InspectorStyleSheetForInlineStyle::ruleSourceData() {
&ruleSourceDataResult);
CSSParser::parseDeclarationListForInspector(
parserContextForDocument(&m_element->document()), text, handler);
- ruleSourceData = ruleSourceDataResult.front().release();
+ ruleSourceData = std::move(ruleSourceDataResult.front());
}
return ruleSourceData.release();
}

Powered by Google App Engine
This is Rietveld 408576698