0
Files
mark a. foltz 6b69ff0c0e [openscreen] Cleanup initializer syntax [1/N]
Per [*], assignment syntax is preferred for initializing POD types,
structs, and containers with initializer lists.  For other cases,
constructor syntax () is preferred.

Done by the following regexp, and a lot of manual fixups for
std::chrono types, which do not support assignment from PoD :(

[
  [r" ([A-Za-z0-9_]+)\{([^, ]+)\};", r" \1 = \2;", ["*.cc", "*.h" ]],
]


[*] https://abseil.io/tips/88


Change-Id: I45d84159c270b31175199f8fd1a7b76b077484a8
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/6076128
Reviewed-by: Jordan Bayles <jophba@chromium.org>
Commit-Queue: Mark Foltz <mfoltz@chromium.org>
2024-12-09 17:10:52 +00:00
..
2020-11-09 19:20:37 +00:00