Author: ctopper
Date: Mon Jun  9 23:50:50 2014
New Revision: 210508

URL: http://llvm.org/viewvc/llvm-project?rev=210508&view=rev
Log:
Simplify code. No functional change.

Modified:
    clang-tools-extra/trunk/clang-query/QueryParser.h

Modified: clang-tools-extra/trunk/clang-query/QueryParser.h
URL: 
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-query/QueryParser.h?rev=210508&r1=210507&r2=210508&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-query/QueryParser.h (original)
+++ clang-tools-extra/trunk/clang-query/QueryParser.h Mon Jun  9 23:50:50 2014
@@ -37,7 +37,7 @@ public:
 
 private:
   QueryParser(StringRef Line, const QuerySession &QS)
-      : Begin(Line.data()), End(Line.data() + Line.size()),
+      : Begin(Line.begin()), End(Line.end()),
         CompletionPos(nullptr), QS(QS) {}
 
   StringRef lexWord();


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to