Skip to content

Commit 4628afe

Browse files
committed
Update
1 parent 80acde9 commit 4628afe

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

examples/svg2png.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bool setup(int argc, char** argv, std::string& filename, std::uint32_t& width, s
3838
return argc > 1;
3939
}
4040

41-
int main(int argc, char** argv)
41+
int main(int argc, char* argv[])
4242
{
4343
std::string filename;
4444
std::uint32_t width = 0, height = 0;

meson.build

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ lunasvg_lib = library('lunasvg', lunasvg_sources,
3333
include_directories: include_directories('include', 'source'),
3434
dependencies: plutovg_dep,
3535
version: meson.project_version(),
36-
c_args: ['-DLUNASVG_BUILD'] + lunasvg_compile_args,
3736
cpp_args: ['-DLUNASVG_BUILD'] + lunasvg_compile_args,
3837
gnu_symbol_visibility: 'hidden',
3938
install: true

source/svgpaintelement.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ static GradientStops buildGradientStops(const SVGGradientElement* element, float
116116
{
117117
GradientStops gradientStops;
118118
for(const auto& child : element->children()) {
119-
auto element = toSVGElement(child);
120-
if(element && element->id() == ElementID::Stop) {
119+
if(auto element = toSVGElement(child); element && element->id() == ElementID::Stop) {
121120
auto stopElement = static_cast<SVGStopElement*>(element);
122121
gradientStops.push_back(stopElement->gradientStop(opacity));
123122
}

0 commit comments

Comments
 (0)