Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

Conversation

@jfkthame
Copy link
Contributor

@jfkthame jfkthame commented Oct 3, 2019

Fixes build failures reported on BSD systems, see https://bugzilla.mozilla.org/show_bug.cgi?id=1583192 and #67.


CMapTable::CMapFormat0::Builder::Builder(const CMapId& cmap_id)
: CMap::Builder(reinterpret_cast<ReadableFontData*>(NULL),
: CMap::Builder(static_cast<ReadableFontData*>(NULL),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider switching to nullptr while you are at it?

ASSERT_FALSE(font_array.empty());
Ptr<Font> font = font_array.at(0);
ASSERT_NE(font, reinterpret_cast<Font*>(NULL));
ASSERT_NE(font, static_cast<Font*>(NULL));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe all the ASSERT/EXPECT EQ/NE checks can just take a nullptr, with no casting.

@leizleiz
Copy link
Contributor

Sorry this fell through the cracks. I left a couple comments, but otherwise this mostly looks good.

Please note Chromium is no longer using sfntly, and switched to HarfBuzz. So there's little interest in maintaining sfntly.

Base automatically changed from master to main March 2, 2021 04:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants