electron/shell/renderer/api
trop[bot] 99f2bab4a4
refactor: fix modernize-return-braced-init-list warnings (#44856)
* 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:13 -06:00
..
context_bridge perf: use v8::Local<v8::Object> as the key in ObjectCache (#43519) 2024-09-04 22:53:06 -05: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 build: make is_mas_build a generated header instead of config (#43737) 2024-09-17 01:38:56 -07:00
electron_api_ipc_renderer.cc fix: -Wunsafe-buffer-usage warning in ChunkedDataPipeReadableStream (#44211) 2024-10-14 10:46:24 +02:00
electron_api_spell_check_client.cc fix: modernize-use-nodiscard clang-tidy warnings (#44833) 2024-11-25 13:55:56 -05: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 (#44856) 2024-11-26 22:18:13 -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