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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <iterator> 5 #include <iterator>
6 #include <map> 6 #include <map>
7 #include <string> 7 #include <string>
8 8
9 #include "scoped_refptr.h" 9 #include "scoped_refptr.h"
10 10
(...skipping 22 matching lines...) Expand all
33 }; 33 };
34 34
35 void TestsAScopedRefptr() { 35 void TestsAScopedRefptr() {
36 MyMap map; 36 MyMap map;
37 map["foo"] = new Foo; 37 map["foo"] = new Foo;
38 map["bar"] = new Foo; 38 map["bar"] = new Foo;
39 MyIter my_begin(map.begin()); 39 MyIter my_begin(map.begin());
40 MyIter my_end(map.end()); 40 MyIter my_end(map.end());
41 for (MyIter it = my_begin; it != my_end; ++it) { 41 for (MyIter it = my_begin; it != my_end; ++it) {
42 const Foo* item = NULL; 42 const Foo* item = NULL;
43 item = *it; 43 if (*it)
44 item = *it;
44 } 45 }
45 } 46 }
OLDNEW
« 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