[cfe-commits] r170365 - /cfe/trunk/include/clang/AST/DeclContextInternals.h

Argyrios Kyrtzidis akyrtzi at gmail.com
Mon Dec 17 12:10:50 PST 2012


Author: akirtzidis
Date: Mon Dec 17 14:10:50 2012
New Revision: 170365

URL: http://llvm.org/viewvc/llvm-project?rev=170365&view=rev
Log:
Just use begin()/end() instead of "&Vector[0], &Vector[0]+Vector.size()".

No functionality change.

Modified:
    cfe/trunk/include/clang/AST/DeclContextInternals.h

Modified: cfe/trunk/include/clang/AST/DeclContextInternals.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclContextInternals.h?rev=170365&r1=170364&r2=170365&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclContextInternals.h (original)
+++ cfe/trunk/include/clang/AST/DeclContextInternals.h Mon Dec 17 14:10:50 2012
@@ -117,7 +117,7 @@
     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,





More information about the cfe-commits mailing list