From 6d72871942adf03e13436ff9342951543351cea6 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 17 Jul 2018 20:12:29 +0200 Subject: Cleanups to core/color.[c|hpp] A number of small cleanups to the color-table: 1) Make the profile_color map of static linkage - it is not used outside of this file. 2) Remove the third color, which originally was planned for printing. It was not accessed anywhere. 3) Replace QVector by std::array. Using a reference-counted, copy-on-write, dynamic container for static data seems like overkill. std::array has exactly the same run-time impact as QColor[2], but allows for assignment. 4) Use brace-initialization and remove the unneeded COLOR macro. 5) Remove the fill_profile_color function. Simply use static initialization. 6) Move #includes from .h to .cpp file. 7) Remove text_render_options(_t), which were not used anywhere. Signed-off-by: Berthold Stoeger --- subsurface-mobile-main.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'subsurface-mobile-main.cpp') diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp index cd9c9dfa4..91bfd65d9 100644 --- a/subsurface-mobile-main.cpp +++ b/subsurface-mobile-main.cpp @@ -83,7 +83,6 @@ int main(int argc, char **argv) else default_prefs.units = IMPERIAL_units; copy_prefs(&default_prefs, &prefs); - fill_profile_color(); fill_computer_list(); parse_xml_init(); -- cgit v1.2.3-70-g09d2