mirror of
https://github.com/boostorg/gil.git
synced 2026-01-30 20:02:11 +00:00
Comment unused parameter of channel_premultiply call operator (#264)
Fix warning: unused parameter `c` [-Wunused-parameter]. Clean up typographic quotation marks.
This commit is contained in:
@@ -24,11 +24,11 @@ struct channel_premultiply
|
||||
{}
|
||||
|
||||
template <typename Channel>
|
||||
void operator()(Channel c) const
|
||||
void operator()(Channel /* channel */) const
|
||||
{
|
||||
// FIXME: Is c input paramater not used intentionally? Add comment on relation between src_ vs c.
|
||||
// TODO: Explain why 'channel' input paramater is not used, or used as tag only.
|
||||
|
||||
// @todo: need to do a “channel_convert” too, in case the channel types aren't the same?
|
||||
// @todo: need to do a "channel_convert" too, in case the channel types aren't the same?
|
||||
get_color(dst_, Channel()) = channel_multiply(get_color(src_,Channel()), alpha_or_max(src_));
|
||||
}
|
||||
SrcP const & src_;
|
||||
|
||||
Reference in New Issue
Block a user