electron/shell/renderer/api
trop[bot] cd6e3d720f
refactor: fix modernize-return-braced-init-list warnings (#44857)
* refactor: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list]

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* refactor: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list]

NB: using the braced-initializer list uncovered an error here:
the float returned by std::floor() can't be implicitly cast to
an int. This is solved by using base::ClampFloor<int>() instead.
std::floor()

Co-authored-by: Charles Kerr <charles@charleskerr.com>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-11-26 22:18:00 -06:00
..
context_bridge perf: use v8::Local<v8::Object> as the key in ObjectCache (#43568) 2024-09-05 10:08:42 +02:00
electron_api_context_bridge.cc chore: remove unused class electron::ObjectLifeMonitor (#43089) 2024-07-30 08:25:28 -05:00
electron_api_context_bridge.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00
electron_api_crash_reporter_renderer.cc chore: rename built-in modules to bindings to match naming update in node (#37182) 2023-02-09 10:31:38 +09:00
electron_api_ipc_renderer.cc fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44223) 2024-10-14 11:37:40 -05:00
electron_api_spell_check_client.cc fix: modernize-use-nodiscard clang-tidy warnings (#44832) 2024-11-25 11:47:00 -06:00
electron_api_spell_check_client.h refactor: put empty virtual function definitions in header (#43285) 2024-08-12 09:56:51 +02:00
electron_api_web_frame.cc refactor: fix modernize-return-braced-init-list warnings (#44857) 2024-11-26 22:18:00 -06:00
electron_api_web_utils.cc feat: add webUtils module with getPathForFile method (#38776) 2023-11-20 15:59:36 -08:00
electron_api_web_utils.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00