diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-08 22:11:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-09 08:25:30 +0200 |
commit | f2517e82904b92989ed7e38a070c18234f460b33 (patch) | |
tree | 2b9bb63f3865670ad250f9fd706a577d1696d88f /sw/source | |
parent | 1159f58831c69680e9f10767d5358e13b66579dd (diff) |
improve loplugin:unusedvarsglobal
to find any global variable, was checking the wrong property of
VarDecl
Change-Id: I454b4e0c1701bb0771768a1ee10cd738c4ab0726
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102278
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/html/css1kywd.cxx | 30 | ||||
-rw-r--r-- | sw/source/filter/html/css1kywd.hxx | 30 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8scan.hxx | 1 |
3 files changed, 0 insertions, 61 deletions
diff --git a/sw/source/filter/html/css1kywd.cxx b/sw/source/filter/html/css1kywd.cxx index f8914dedb274..af8c5392a765 100644 --- a/sw/source/filter/html/css1kywd.cxx +++ b/sw/source/filter/html/css1kywd.cxx @@ -21,13 +21,9 @@ const char* const sCSS_mimetype = "text/css"; -const char* const sCSS1_import = "import"; - const char* const sCSS1_page = "page"; //const char* const sCSS1_media = "media"; -const char* const sCSS1_important = "important"; - const char* const sCSS1_link = "link"; const char* const sCSS1_visited = "visited"; const char* const sCSS1_first_letter = "first-letter"; @@ -37,7 +33,6 @@ const char* const sCSS1_right = "right"; const char* const sCSS1_first = "first"; const char* const sCSS1_url = "url"; -const char* const sCSS1_rgb = "rgb"; const char* const sCSS1_UNIT_pt = "pt"; const char* const sCSS1_UNIT_mm = "mm"; @@ -45,8 +40,6 @@ const char* const sCSS1_UNIT_cm = "cm"; const char* const sCSS1_UNIT_pc = "pc"; const char* const sCSS1_UNIT_inch = "in"; const char* const sCSS1_UNIT_px = "px"; -const char* const sCSS1_UNIT_em = "em"; -const char* const sCSS1_UNIT_ex = "ex"; // Strings for font properties @@ -78,8 +71,6 @@ const char* const sCSS1_PV_demi_light = "demi-light"; const char* const sCSS1_PV_demi_bold = "demi-bold"; const char* const sCSS1_PV_bold = "bold"; const char* const sCSS1_PV_extra_bold = "extra-bold"; -const char* const sCSS1_PV_lighter = "lighter"; -const char* const sCSS1_PV_bolder = "bolder"; const char* const sCSS1_P_text_transform = "text-transform"; @@ -89,17 +80,6 @@ const char* const sCSS1_PV_lowercase = "lowercase"; const char* const sCSS1_P_font_size = "font-size"; -const char* const sCSS1_PV_xx_small = "xx-small"; -const char* const sCSS1_PV_x_small = "x-small"; -const char* const sCSS1_PV_small = "small"; -const char* const sCSS1_PV_medium = "medium"; -const char* const sCSS1_PV_large = "large"; -const char* const sCSS1_PV_x_large = "x-large"; -const char* const sCSS1_PV_xx_large = "xx-large"; - -const char* const sCSS1_PV_larger = "larger"; -const char* const sCSS1_PV_smaller = "smaller"; - const char* const sCSS1_P_font = "font"; // Strings for color and background properties @@ -112,8 +92,6 @@ const char* const sCSS1_P_background_color = "background-color"; const char* const sCSS1_PV_transparent = "transparent"; const char* const sCSS1_PV_repeat = "repeat"; -const char* const sCSS1_PV_repeat_x = "repeat-x"; -const char* const sCSS1_PV_repeat_y = "repeat-y"; const char* const sCSS1_PV_no_repeat = "no-repeat"; const char* const sCSS1_PV_top = "top"; @@ -175,10 +153,6 @@ const char* const sCSS1_P_border_top = "border-top"; const char* const sCSS1_P_border_bottom = "border-bottom"; const char* const sCSS1_P_border = "border"; -const char* const sCSS1_PV_thin = "thin"; -//const char* const sCSS1_PV_medium = "medium"; -const char* const sCSS1_PV_thick = "thick"; - //const char* const sCSS1_PV_none = "none"; const char* const sCSS1_PV_dotted = "dotted"; const char* const sCSS1_PV_dashed = "dashed"; @@ -203,8 +177,6 @@ const char* const sCSS1_P_column_count = "column-count"; const char* const sCSS1_P_position = "position"; const char* const sCSS1_PV_absolute = "absolute"; -const char* const sCSS1_PV_relative = "relative"; -const char* const sCSS1_PV_static = "static"; const char* const sCSS1_P_left = "left"; @@ -230,8 +202,6 @@ const char* const sCSS1_PV_landscape = "landscape"; //const char* const sCSS1_PV_crop = "crop"; //const char* const sCSS1_PV_cross = "cross"; -const char* const sCSS1_class_abs_pos = "sd-abs-pos"; - const char* const sCSS1_P_so_language = "so-language"; const char* const sCSS1_P_direction = "direction"; diff --git a/sw/source/filter/html/css1kywd.hxx b/sw/source/filter/html/css1kywd.hxx index 7c0e326fd86a..eee703adce66 100644 --- a/sw/source/filter/html/css1kywd.hxx +++ b/sw/source/filter/html/css1kywd.hxx @@ -24,12 +24,8 @@ extern const char* const sCSS_mimetype; -extern const char* const sCSS1_import; - extern const char* const sCSS1_page; -extern const char* const sCSS1_important; - extern const char* const sCSS1_link; extern const char* const sCSS1_visited; extern const char* const sCSS1_first_letter; @@ -39,7 +35,6 @@ extern const char* const sCSS1_right; extern const char* const sCSS1_first; extern const char* const sCSS1_url; -extern const char* const sCSS1_rgb; extern const char* const sCSS1_UNIT_pt; extern const char* const sCSS1_UNIT_mm; @@ -47,8 +42,6 @@ extern const char* const sCSS1_UNIT_cm; extern const char* const sCSS1_UNIT_pc; extern const char* const sCSS1_UNIT_inch; extern const char* const sCSS1_UNIT_px; -extern const char* const sCSS1_UNIT_em; -extern const char* const sCSS1_UNIT_ex; // Strings for font properties @@ -86,22 +79,9 @@ extern const char* const sCSS1_PV_demi_light; extern const char* const sCSS1_PV_demi_bold; extern const char* const sCSS1_PV_bold; extern const char* const sCSS1_PV_extra_bold; -extern const char* const sCSS1_PV_lighter; -extern const char* const sCSS1_PV_bolder; extern const char* const sCSS1_P_font_size; -extern const char* const sCSS1_PV_xx_small; -extern const char* const sCSS1_PV_x_small; -extern const char* const sCSS1_PV_small; -extern const char* const sCSS1_PV_medium; -extern const char* const sCSS1_PV_large; -extern const char* const sCSS1_PV_x_large; -extern const char* const sCSS1_PV_xx_large; - -extern const char* const sCSS1_PV_larger; -extern const char* const sCSS1_PV_smaller; - extern const char* const sCSS1_P_font; // Strings for color and background properties @@ -114,8 +94,6 @@ extern const char* const sCSS1_P_background_color; extern const char* const sCSS1_PV_transparent; extern const char* const sCSS1_PV_repeat; -extern const char* const sCSS1_PV_repeat_x; -extern const char* const sCSS1_PV_repeat_y; extern const char* const sCSS1_PV_no_repeat; extern const char* const sCSS1_PV_top; @@ -178,10 +156,6 @@ extern const char* const sCSS1_P_border_top; extern const char* const sCSS1_P_border_bottom; extern const char* const sCSS1_P_border; -extern const char* const sCSS1_PV_thin; -//extern const char* const sCSS1_PV_medium; -extern const char* const sCSS1_PV_thick; - //extern const char* const sCSS1_PV_none; extern const char* const sCSS1_PV_dotted; extern const char* const sCSS1_PV_dashed; @@ -206,8 +180,6 @@ extern const char* const sCSS1_P_column_count; extern const char* const sCSS1_P_position; extern const char* const sCSS1_PV_absolute; -extern const char* const sCSS1_PV_relative; -extern const char* const sCSS1_PV_static; extern const char* const sCSS1_P_left; @@ -234,8 +206,6 @@ extern const char* const sCSS1_PV_landscape; //extern const char* const sCSS1_PV_cross; -extern const char* const sCSS1_class_abs_pos; - extern const char* const sCSS1_P_so_language; extern const char* const sCSS1_P_direction; extern const char* const sCSS1_PV_ltr; diff --git a/sw/source/filter/ww8/ww8scan.hxx b/sw/source/filter/ww8/ww8scan.hxx index 2e42d33dc19b..85f080e4bebc 100644 --- a/sw/source/filter/ww8/ww8scan.hxx +++ b/sw/source/filter/ww8/ww8scan.hxx @@ -47,7 +47,6 @@ namespace SL const char aData[] = "Data"; const char aCheckBox[] = "CheckBox"; const char aListBox[] = "ListBox"; - const char aTextBox[] = "TextBox"; const char aTextField[] = "TextField"; const char aMSMacroCmds[] = "MSMacroCmds"; } |