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

Unified Diff: Source/core/editing/SetNodeAttributeCommand.cpp

Issue 92383002: Mark AtomicString(StringImpl*) constructor as explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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: Source/core/editing/SetNodeAttributeCommand.cpp
diff --git a/Source/core/editing/SetNodeAttributeCommand.cpp b/Source/core/editing/SetNodeAttributeCommand.cpp
index b4bd12f3a72084e66f031856a30c09751abe85f4..2d4b7ee8f9dd045b33bbd896bdc5b1b2893c87a8 100644
--- a/Source/core/editing/SetNodeAttributeCommand.cpp
+++ b/Source/core/editing/SetNodeAttributeCommand.cpp
@@ -50,8 +50,7 @@ void SetNodeAttributeCommand::doApply()
void SetNodeAttributeCommand::doUnapply()
{
m_element->setAttribute(m_attribute, m_oldValue);
- StringImpl* nullString = 0;
- m_oldValue = nullString;
+ m_oldValue = nullAtom;
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698