ladybird/Userland/Applications/Browser
Lenny Maiorani 800ea8ea96 Userland: static vs non-static constexpr variables
Problem:
- `static` variables consume memory and sometimes are less
  optimizable.
- `static const` variables can be `constexpr`, usually.
- `static` function-local variables require an initialization check
  every time the function is run.

Solution:
- If a global `static` variable is only used in a single function then
  move it into the function and make it non-`static` and `constexpr`.
- Make all global `static` variables `constexpr` instead of `const`.
- Change function-local `static const[expr]` variables to be just
  `constexpr`.
2021-05-21 10:07:06 +01:00
..
BookmarksBarWidget.cpp Browser: Apply some polish to menus and actions 2021-05-10 10:27:23 +02:00
BookmarksBarWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Browser.h Browser: Move menu management from Tab to BrowserWindow 2021-05-18 20:02:00 +02:00
BrowserConsoleClient.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
BrowserConsoleClient.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
BrowserWindow.cpp Browser: Add support for custom search engines 2021-05-19 20:51:51 +01:00
BrowserWindow.gml Browser: Add a separator line below the menu while in multi-tab mode 2021-04-09 22:23:32 +02:00
BrowserWindow.h Browser: Add support for custom search engines 2021-05-19 20:51:51 +01:00
CMakeLists.txt Browser: Move main browser window logic into a BrowserWindow class 2021-05-17 23:32:35 +02:00
ConsoleWidget.cpp AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
ConsoleWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CookieJar.cpp Userland: static vs non-static constexpr variables 2021-05-21 10:07:06 +01:00
CookieJar.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
DownloadWidget.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
DownloadWidget.h Services: Rename ProtocolServer to RequestServer 2021-04-25 19:04:34 +02:00
EditBookmark.gml Browser: Add right-click context menu item for editing bookmarks 2021-03-26 22:58:31 +01:00
History.cpp Browser: Don't add multiple page reloads to history 2021-05-18 23:14:37 +01:00
History.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
InspectorWidget.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
InspectorWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
main.cpp Browser: Move menu management from Tab to BrowserWindow 2021-05-18 20:02:00 +02:00
Tab.cpp TextEditor+Browser: Enable HTML syntax highlighting on HTML documents 2021-05-20 22:06:45 +02:00
Tab.gml Everywhere: It's now "Foobar", not "FooBar", and not "foo bar" 2021-04-13 16:58:15 +02:00
Tab.h Browser: Move actions from Tab to BrowserWindow 2021-05-18 20:02:00 +02:00
WindowActions.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
WindowActions.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00