SkBitSet: cleanup. Remove unused fn, more general exporter.
Change-Id: I090a20decf30631f2464a820c6a056a81b6cc1a3
Reviewed-on: https://skia-review.googlesource.com/c/163784
Commit-Queue: Hal Canary <halcanary@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
diff --git a/tests/PDFGlyphsToUnicodeTest.cpp b/tests/PDFGlyphsToUnicodeTest.cpp
index 64eefbd..2aa52f8 100644
--- a/tests/PDFGlyphsToUnicodeTest.cpp
+++ b/tests/PDFGlyphsToUnicodeTest.cpp
@@ -78,7 +78,9 @@
SkGlyphID lastGlyphID = SkToU16(glyphToUnicode.count() - 1);
SkDynamicMemoryWStream buffer;
- subset.setAll(glyphsInSubset.begin(), glyphsInSubset.count());
+ for (uint16_t v : glyphsInSubset) {
+ subset.set(v);
+ }
SkPDFAppendCmapSections(&glyphToUnicode[0], &subset, &buffer, true, 0,
SkTMin<SkGlyphID>(0xFFFF, lastGlyphID));
@@ -172,7 +174,9 @@
glyphsInSubset.push_back(0x57);
SkDynamicMemoryWStream buffer2;
- subset2.setAll(glyphsInSubset.begin(), glyphsInSubset.count());
+ for (uint16_t v : glyphsInSubset) {
+ subset2.set(v);
+ }
SkPDFAppendCmapSections(&glyphToUnicode[0], &subset2, &buffer2, true, 0,
SkTMin<SkGlyphID>(0xFFFF, lastGlyphID));