Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed Oct 12, 2024
1 parent 80acde9 commit 4628afe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/svg2png.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bool setup(int argc, char** argv, std::string& filename, std::uint32_t& width, s
return argc > 1;
}

int main(int argc, char** argv)
int main(int argc, char* argv[])
{
std::string filename;
std::uint32_t width = 0, height = 0;
Expand Down
1 change: 0 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ lunasvg_lib = library('lunasvg', lunasvg_sources,
include_directories: include_directories('include', 'source'),
dependencies: plutovg_dep,
version: meson.project_version(),
c_args: ['-DLUNASVG_BUILD'] + lunasvg_compile_args,
cpp_args: ['-DLUNASVG_BUILD'] + lunasvg_compile_args,
gnu_symbol_visibility: 'hidden',
install: true
Expand Down
3 changes: 1 addition & 2 deletions source/svgpaintelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ static GradientStops buildGradientStops(const SVGGradientElement* element, float
{
GradientStops gradientStops;
for(const auto& child : element->children()) {
auto element = toSVGElement(child);
if(element && element->id() == ElementID::Stop) {
if(auto element = toSVGElement(child); element && element->id() == ElementID::Stop) {
auto stopElement = static_cast<SVGStopElement*>(element);
gradientStops.push_back(stopElement->gradientStop(opacity));
}
Expand Down

0 comments on commit 4628afe

Please sign in to comment.