diff options
author | Dan Albert <danalbert@google.com> | 2014-10-01 11:34:17 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-10-01 11:34:17 -0700 |
commit | 0de19adc80d8caeac8ab5da79e70ed4adb18b1c1 (patch) | |
tree | ad3d0d9727f762371d91685d97f2a9643050f206 /tools/aapt/StringPool.h | |
parent | 0451728645d559d904f579894d4b59e971e2369e (diff) |
Use std::sort instead of qsort_r wrapper.
The HAVE_(BSD|GNU)_QSORT_R in AndroidConfig.h has never worked, and we
should just be using something standard anyway.
Change-Id: I784d6212f6c890a11c4af2f83d1ce2d279708652
Diffstat (limited to 'tools/aapt/StringPool.h')
-rw-r--r-- | tools/aapt/StringPool.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/aapt/StringPool.h b/tools/aapt/StringPool.h index 1b5a7ba6b009..0b2653845b02 100644 --- a/tools/aapt/StringPool.h +++ b/tools/aapt/StringPool.h @@ -138,7 +138,14 @@ public: const Vector<size_t>* offsetsForString(const String16& val) const; private: - static int config_sort(void* state, const void* lhs, const void* rhs); + class ConfigSorter + { + public: + explicit ConfigSorter(const StringPool&); + bool operator()(size_t l, size_t r); + private: + const StringPool& pool; + }; const bool mUTF8; |