aboutsummaryrefslogtreecommitdiff
path: root/src/common/param_package.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-04 06:33:17 -0400
committerLioncash <mathew1800@gmail.com>2018-10-04 09:43:51 -0400
commit3eb26feb5c0615979a4d683c9e074a7a51cb6667 (patch)
treeea230e248bffe2a944ce6062a7775d25feab1dfc /src/common/param_package.cpp
parentbc5dde276571f0dceebeb2e567729a6fb9f0bab0 (diff)
ui_settings: Place definition of the theme array within the cpp file
Placing the array wholesale into the header places a copy of the whole array into every translation unit that uses the data, which is wasteful. Particularly given that this array is referenced from three different translation units. This also changes the array to contain pairs of const char*, rather than QString instances. This way, the string data is able to be fixed into the read-only segment of the program, as well as eliminate static constructors/heap allocation immediately on program start.
Diffstat (limited to 'src/common/param_package.cpp')
0 files changed, 0 insertions, 0 deletions