commit | de7de47fef1dcaa26d553665d89e4d3792325c3f | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Mon Nov 03 12:03:08 2014 -0800 |
committer | Adam Lesinski <adamlesinski@google.com> | Mon Nov 03 15:55:44 2014 -0800 |
tree | 0d9551d2f037b841f325bbbd3ba27a309e9441b3 | |
parent | f7ffcaa7a478eaafc121e84b14dcaf2503dd5457 [diff] [blame] |
Add error checking to aapt for split generation Change-Id: Ica627db6a671f6a6c35f98bfd9c03598ffe103ce
diff --git a/tools/aapt/SourcePos.cpp b/tools/aapt/SourcePos.cpp index ae25047..3864320 100644 --- a/tools/aapt/SourcePos.cpp +++ b/tools/aapt/SourcePos.cpp
@@ -141,6 +141,12 @@ } bool +SourcePos::operator<(const SourcePos& rhs) const +{ + return (file < rhs.file) || (line < rhs.line); +} + +bool SourcePos::hasErrors() { return g_errors.size() > 0;