Index: src/ports/SkTypeface_win_dw.cpp |
diff --git a/src/ports/SkTypeface_win_dw.cpp b/src/ports/SkTypeface_win_dw.cpp |
index 2387def0a8998f133a5f84e09f88735482c75bea..566f3d166bc608a7ff611ea8c8e63853e597654d 100644 |
--- a/src/ports/SkTypeface_win_dw.cpp |
+++ b/src/ports/SkTypeface_win_dw.cpp |
@@ -304,7 +304,7 @@ static void populate_glyph_to_unicode(IDWriteFontFace* fontFace, |
} |
} |
- glyphToUnicode->swap(SkTDArray<SkUnichar>(glyphToUni, maxGlyph + 1)); |
+ SkTDArray<SkUnichar>(glyphToUni, maxGlyph + 1).swap(*glyphToUnicode); |
} |
static bool getWidthAdvance(IDWriteFontFace* fontFace, int gId, int16_t* advance) { |