[PR #16820] Clean up the Converters implementation #31008

Open
opened 2026-01-31 09:44:31 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/16820

State: closed
Merged: Yes


I thought the Converters.idl file had a really neat ordering,
and I felt like the .cpp implementation fell short of this.

This PR reorders the functions in the implementation to match the IDL.
It also gets rid of some unnecessary math (int vs. float, clamping)
and removes another use of std::stringstream (= bad STL class).

**Original Pull Request:** https://github.com/microsoft/terminal/pull/16820 **State:** closed **Merged:** Yes --- I thought the Converters.idl file had a really neat ordering, and I felt like the .cpp implementation fell short of this. This PR reorders the functions in the implementation to match the IDL. It also gets rid of some unnecessary math (int vs. float, clamping) and removes another use of `std::stringstream` (= bad STL class).
claunia added the pull-request label 2026-01-31 09:44:31 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31008