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

Unified Diff: third_party/WebKit/Source/core/editing/commands/UndoStack.cpp

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/editing/commands/UndoStack.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp b/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp
index 2be0babc7f97466b6837beff9eec08d260a8e0f1..4ec830acf201f2a3c57acf4be64400ff930697fe 100644
--- a/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp
@@ -91,7 +91,7 @@ void UndoStack::redo()
m_redoStack.remove(back);
DCHECK(!m_inRedo);
- TemporaryChange<bool> redoScope(m_inRedo, true);
+ TemporaryChange<bool> redoScope(&m_inRedo, true);
step->reapply();
// reapply will call us back to push this command onto the undo stack.
}

Powered by Google App Engine
This is Rietveld 408576698