diff --git a/third_party/txt/src/minikin/Layout.cpp b/third_party/txt/src/minikin/Layout.cpp index 436c59b9f9df3..fa30e1ab50a53 100644 --- a/third_party/txt/src/minikin/Layout.cpp +++ b/third_party/txt/src/minikin/Layout.cpp @@ -41,9 +41,6 @@ #include "LayoutUtils.h" #include "MinikinInternal.h" -using std::string; -using std::vector; - namespace minikin { const int kDirection_Mask = 0x1; @@ -745,7 +742,8 @@ float Layout::doLayoutWord(const uint16_t* buf, return advance; } -static void addFeatures(const string& str, vector* features) { +static void addFeatures(const std::string& str, + std::vector* features) { if (!str.size()) return; @@ -925,10 +923,10 @@ void Layout::doLayoutRun(const uint16_t* buf, LayoutContext* ctx, const std::shared_ptr& collection) { hb_buffer_t* buffer = LayoutEngine::getInstance().hbBuffer; - vector items; + std::vector items; collection->itemize(buf + start, count, ctx->style, &items); - vector features; + std::vector features; // Disable default-on non-required ligature features if letter-spacing // See http://dev.w3.org/csswg/css-text-3/#letter-spacing-property // "When the effective spacing between two characters is not zero (due to