use if/else if ...

This commit is contained in:
artemp 2015-05-18 11:21:56 +01:00
parent b2691f5906
commit bf6b7d79bd
3 changed files with 5 additions and 7 deletions

View file

@ -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())
{

View file

@ -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())
{

View file

@ -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())
{