From: Argyrios Kyrtzidis Date: Mon, 17 Dec 2012 20:10:50 +0000 (+0000) Subject: Just use begin()/end() instead of "&Vector[0], &Vector[0]+Vector.size()". X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e48a2e2d677d9ba97b457e0af3494d6b6387380;p=clang Just use begin()/end() instead of "&Vector[0], &Vector[0]+Vector.size()". No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170365 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclContextInternals.h b/include/clang/AST/DeclContextInternals.h index 48e574cd79..6acee7d85c 100644 --- a/include/clang/AST/DeclContextInternals.h +++ b/include/clang/AST/DeclContextInternals.h @@ -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,