Index: src/gpu/gl/GrGLExtensions.cpp |
diff --git a/src/gpu/gl/GrGLExtensions.cpp b/src/gpu/gl/GrGLExtensions.cpp |
index a071923527759200da9ef4cb9c9a63f07bccbd01..633796ded8373417e82b975725a27fb152220f1b 100644 |
--- a/src/gpu/gl/GrGLExtensions.cpp |
+++ b/src/gpu/gl/GrGLExtensions.cpp |
@@ -13,8 +13,8 @@ |
#include "SkTSort.h" |
namespace { |
-inline int extension_compare(const SkString* a, const SkString* b) { |
- return strcmp(a->c_str(), b->c_str()); |
+inline bool extension_compare(const SkString& a, const SkString& b) { |
+ return strcmp(a.c_str(), b.c_str()) < 0; |
} |
} |
@@ -67,7 +67,7 @@ bool GrGLExtensions::init(GrGLBinding binding, |
} |
} |
if (0 != fStrings.count()) { |
- SkTSearchCompareLTFunctor<SkString, extension_compare> cmp; |
+ SkTLessFunctionToFunctorAdaptor<SkString, extension_compare> cmp; |
SkTQSort(&fStrings.front(), &fStrings.back(), cmp); |
} |
return true; |