-
-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Declare RGBPixel, RGBAPixel constructors from component
explicit
Prevents implicit conversion of a component value to `RGBPixel` or `RGBAPixel`. Aims to avoid possible flaws, like the one addressed by: Pull request #3223 commit 490ef8c "BUG: Fix `ColorTableTestSpecialConditionChecker` component/pixel mix-up" Added _deleted_ `RGBPixel(nullptr_t)` and `RGBAPixel(nullptr_t)` constructors, especially to avoid erroneous user code like `RGBPixel pixel = 0`.
- Loading branch information
1 parent
35648fa
commit 0d352bd
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters