use if/else if ...
This commit is contained in:
parent
b2691f5906
commit
bf6b7d79bd
3 changed files with 5 additions and 7 deletions
|
@ -52,10 +52,9 @@ void process_rgba8_jpeg(T const& image, std::string const& type, std::ostream &
|
|||
{
|
||||
auto const& key = kv.first;
|
||||
auto const& val = kv.second;
|
||||
|
||||
if ( key == "jpeg" ) continue;
|
||||
|
||||
if ( key == "quality")
|
||||
if ( key == "jpeg" ) continue;
|
||||
else if ( key == "quality")
|
||||
{
|
||||
if (val && ! (*val).empty())
|
||||
{
|
||||
|
|
|
@ -54,7 +54,7 @@ void handle_tiff_options(std::string const& type,
|
|||
auto const& key = kv.first;
|
||||
auto const& val = kv.second;
|
||||
if (key == "tiff") continue;
|
||||
if (key == "compression")
|
||||
else if (key == "compression")
|
||||
{
|
||||
if (val && !(*val).empty())
|
||||
{
|
||||
|
|
|
@ -55,10 +55,9 @@ void handle_webp_options(std::string const& type,
|
|||
{
|
||||
auto const& key = kv.first;
|
||||
auto const& val = kv.second;
|
||||
|
||||
if (key == "webp") continue;
|
||||
|
||||
if (key == "quality")
|
||||
if (key == "webp") continue;
|
||||
else if (key == "quality")
|
||||
{
|
||||
if (val && !(*val).empty())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue