serenity/Userland/Demos
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
..
CatDog CatDog: Don't show context menu when clicking outside of widget 2021-05-19 23:14:07 +02:00
Cube LibGfx+Demos: Make Matrix4x4 a true alias for Matrix<4,T> 2021-05-13 22:24:42 +02:00
Eyes Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
Fire Userland: static vs non-static constexpr variables 2021-05-21 10:07:06 +01:00
LibGfxDemo LibGfx: Add missing TextAlignment::BottomLeft 2021-05-21 08:04:31 +02:00
LibGfxScaleDemo Everywhere: Add Alt shortcuts to remaining top-level menus 2021-05-12 18:09:42 +01:00
Mandelbrot Mandelbrot: Export images in a fixed resolution 2021-05-18 16:01:32 +02:00
Mouse Everywhere: Add Alt shortcuts to remaining top-level menus 2021-05-12 18:09:42 +01:00
Screensaver Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
Starfield Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
WidgetGallery Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
CMakeLists.txt 3DFileViewer: Move Demos/GLTeapot to Applications/3DFileViewer 2021-05-19 19:34:12 +01:00