]> granicus.if.org Git - clang/commitdiff
Just use begin()/end() instead of "&Vector[0], &Vector[0]+Vector.size()".
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 17 Dec 2012 20:10:50 +0000 (20:10 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 17 Dec 2012 20:10:50 +0000 (20:10 +0000)
No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170365 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclContextInternals.h

index 48e574cd79b5732348ba0742e3dc4b2d8b772a72..6acee7d85ce45e156d85beea806eb1839a7f87f4 100644 (file)
@@ -117,7 +117,7 @@ public:
     DeclsTy &Vector = *getAsVector();
 
     // Otherwise, we have a range result.
-    return DeclContext::lookup_result(&Vector[0], &Vector[0]+Vector.size());
+    return DeclContext::lookup_result(Vector.begin(), Vector.end());
   }
 
   /// HandleRedeclaration - If this is a redeclaration of an existing decl,