Skip to content

Commit 7dfcf3a

Browse files
committed
fix lint
1 parent f8b88bd commit 7dfcf3a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/svgdom/elements/styleable.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,8 +902,6 @@ std::string svgdom::color_interpolation_filters_to_string(const style_value& v)
902902
namespace {
903903
decltype(enable_background_property::rect) parse_enable_background_new_rect(std::string_view str)
904904
{
905-
using ret_type = decltype(enable_background_property::rect);
906-
907905
try {
908906
utki::string_parser p(str);
909907
p.skip_inclusive_until(' '); // skip 'new'
@@ -918,7 +916,10 @@ decltype(enable_background_property::rect) parse_enable_background_new_rect(std:
918916
};
919917
}
920918

921-
return ret_type({p.read_number<real>(), p.read_number<real>()}, {p.read_number<real>(), p.read_number<real>()});
919+
return {
920+
{p.read_number<real>(), p.read_number<real>()},
921+
{p.read_number<real>(), p.read_number<real>()}
922+
};
922923
} catch (std::invalid_argument&) {
923924
throw malformed_svg_error("malformed enable-background NEW string");
924925
}

0 commit comments

Comments
 (0)