Skip to content

Commit 287bb0f

Browse files
rtobarawesomekling
authored andcommitted
LibPDF: Return results directly and avoid unpacking+packing
1 parent aa9fab9 commit 287bb0f

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

Userland/Libraries/LibPDF/Renderer.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ RENDERER_HANDLER(path_fill_nonzero)
319319

320320
RENDERER_HANDLER(path_fill_nonzero_deprecated)
321321
{
322-
TRY(handle_path_fill_nonzero(args));
323-
return {};
322+
return handle_path_fill_nonzero(args);
324323
}
325324

326325
RENDERER_HANDLER(path_fill_evenodd)
@@ -334,29 +333,25 @@ RENDERER_HANDLER(path_fill_evenodd)
334333
RENDERER_HANDLER(path_fill_stroke_nonzero)
335334
{
336335
m_anti_aliasing_painter.stroke_path(m_current_path, state().stroke_color, state().line_width);
337-
TRY(handle_path_fill_nonzero(args));
338-
return {};
336+
return handle_path_fill_nonzero(args);
339337
}
340338

341339
RENDERER_HANDLER(path_fill_stroke_evenodd)
342340
{
343341
m_anti_aliasing_painter.stroke_path(m_current_path, state().stroke_color, state().line_width);
344-
TRY(handle_path_fill_evenodd(args));
345-
return {};
342+
return handle_path_fill_evenodd(args);
346343
}
347344

348345
RENDERER_HANDLER(path_close_fill_stroke_nonzero)
349346
{
350347
m_current_path.close();
351-
TRY(handle_path_fill_stroke_nonzero(args));
352-
return {};
348+
return handle_path_fill_stroke_nonzero(args);
353349
}
354350

355351
RENDERER_HANDLER(path_close_fill_stroke_evenodd)
356352
{
357353
m_current_path.close();
358-
TRY(handle_path_fill_stroke_evenodd(args));
359-
return {};
354+
return handle_path_fill_stroke_evenodd(args);
360355
}
361356

362357
RENDERER_HANDLER(path_end)

0 commit comments

Comments
 (0)