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

Unified Diff: tools/clang/rewrite_scoped_refptr/tests/test12-original.cc

Issue 453873002: Implement rewrite logic for assigning a temporary scoped_refptr to T*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more changes Created 6 years, 4 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: tools/clang/rewrite_scoped_refptr/tests/test12-original.cc
diff --git a/tools/clang/rewrite_scoped_refptr/tests/test12-original.cc b/tools/clang/rewrite_scoped_refptr/tests/test12-original.cc
index de4dd67258024f24cffb8d8387815e6daaa51391..33f1eb12ef14fec35eb29070b364043654e04a17 100644
--- a/tools/clang/rewrite_scoped_refptr/tests/test12-original.cc
+++ b/tools/clang/rewrite_scoped_refptr/tests/test12-original.cc
@@ -40,6 +40,7 @@ void TestsAScopedRefptr() {
MyIter my_end(map.end());
for (MyIter it = my_begin; it != my_end; ++it) {
const Foo* item = NULL;
- item = *it;
+ if (*it)
+ item = *it;
}
}
« no previous file with comments | « tools/clang/rewrite_scoped_refptr/tests/test12-expected.cc ('k') | tools/clang/rewrite_scoped_refptr/tests/test2-expected.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698