Skip to content

Commit 8f22231

Browse files
skefgarretrieger
authored andcommitted
Make GlyphSegmentation file encapsulation match object encapsulation
1 parent cdc76e5 commit 8f22231

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ift/encoder/closure_glyph_segmenter.cc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,4 @@ StatusOr<GlyphSegmentation> ClosureGlyphSegmenter::CodepointToGlyphSegments(
707707
return absl::InternalError("unreachable");
708708
}
709709

710-
void GlyphSegmentation::CopySegments(
711-
const std::vector<hb_set_unique_ptr>& segments) {
712-
segments_.clear();
713-
for (const auto& set : segments) {
714-
segments_.push_back(to_btree_set(set.get()));
715-
}
716-
}
717-
718-
} // namespace ift::encoder
710+
} // namespace ift::encoder

ift/encoder/glyph_segmentation.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,4 +436,12 @@ EncoderConfig GlyphSegmentation::ToConfigProto() const {
436436
return config;
437437
}
438438

439+
void GlyphSegmentation::CopySegments(
440+
const std::vector<common::hb_set_unique_ptr>& segments) {
441+
segments_.clear();
442+
for (const auto& set : segments) {
443+
segments_.push_back(common::to_btree_set(set.get()));
444+
}
445+
}
446+
439447
} // namespace ift::encoder

0 commit comments

Comments
 (0)