2
0
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:
Mateusz Łoskot
2019-03-21 18:54:06 +01:00
committed by GitHub
parent 5427e60dcc
commit d9e7ff588f

View File

@@ -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_;