summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-01 10:22:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-01 15:44:40 +0100
commit1186dfea12738c6157d6214f32b49d821db1f280 (patch)
treea905f21941067547d5ad9794a4b0f51fb19d91c7 /sfx2
parentf9e029c78dc17da90931dee8aaabba8e80083886 (diff)
cid#1470362 Uninitialized scalar field
Change-Id: I8828b7e098c1af9411b15b449f425242f5e64635 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106972 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/TabBar.cxx10
-rw-r--r--sfx2/source/sidebar/Theme.cxx22
2 files changed, 0 insertions, 32 deletions
diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index ee6b901c65de..9738ae6ca29f 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -95,16 +95,6 @@ void TabBar::dispose()
InterimItemWindow::dispose();
}
-void TabBar::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rUpdateArea)
-{
- InterimItemWindow::Paint(rRenderContext, rUpdateArea);
-
- const sal_Int32 nHorizontalPadding(Theme::GetInteger(Theme::Int_TabMenuSeparatorPadding));
- rRenderContext.SetLineColor(Theme::GetColor(Theme::Color_TabMenuSeparator));
- rRenderContext.DrawLine(Point(nHorizontalPadding, mnMenuSeparatorY),
- Point(GetSizePixel().Width() - nHorizontalPadding, mnMenuSeparatorY));
-}
-
sal_Int32 TabBar::GetDefaultWidth()
{
if (!gDefaultWidth)
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx
index 063572b5c97e..bd64a87b7907 100644
--- a/sfx2/source/sidebar/Theme.cxx
+++ b/sfx2/source/sidebar/Theme.cxx
@@ -181,16 +181,6 @@ void Theme::UpdateTheme()
Any(sal_Int32(aBaseBackgroundColor.GetRGBColor())));
setPropertyValue(
- maPropertyIdToNameMap[Int_TabMenuPadding],
- Any(sal_Int32(3)));
- setPropertyValue(
- maPropertyIdToNameMap[Color_TabMenuSeparator],
- Any(sal_Int32(aBorderColor.GetRGBColor())));
- setPropertyValue(
- maPropertyIdToNameMap[Int_TabMenuSeparatorPadding],
- Any(sal_Int32(3)));
-
- setPropertyValue(
maPropertyIdToNameMap[Color_DropDownBackground],
Any(sal_Int32(aBaseBackgroundColor.GetRGBColor())));
@@ -512,9 +502,6 @@ void Theme::SetupPropertyMaps()
maPropertyNameToIdMap["Color_PanelTitleFont"]=Color_PanelTitleFont;
maPropertyIdToNameMap[Color_PanelTitleFont]="Color_PanelTitleFont";
- maPropertyNameToIdMap["Color_TabMenuSeparator"]=Color_TabMenuSeparator;
- maPropertyIdToNameMap[Color_TabMenuSeparator]="Color_TabMenuSeparator";
-
maPropertyNameToIdMap["Color_Highlight"]=Color_Highlight;
maPropertyIdToNameMap[Color_Highlight]="Color_Highlight";
@@ -559,12 +546,6 @@ void Theme::SetupPropertyMaps()
maPropertyNameToIdMap["Int_PanelTitleBarHeight"]=Int_PanelTitleBarHeight;
maPropertyIdToNameMap[Int_PanelTitleBarHeight]="Int_PanelTitleBarHeight";
- maPropertyNameToIdMap["Int_TabMenuPadding"]=Int_TabMenuPadding;
- maPropertyIdToNameMap[Int_TabMenuPadding]="Int_TabMenuPadding";
-
- maPropertyNameToIdMap["Int_TabMenuSeparatorPadding"]=Int_TabMenuSeparatorPadding;
- maPropertyIdToNameMap[Int_TabMenuSeparatorPadding]="Int_TabMenuSeparatorPadding";
-
maPropertyNameToIdMap["Int_DeckLeftPadding"]=Int_DeckLeftPadding;
maPropertyIdToNameMap[Int_DeckLeftPadding]="Int_DeckLeftPadding";
@@ -596,7 +577,6 @@ Theme::PropertyType Theme::GetPropertyType (const ThemeItem eItem)
case Color_DeckTitleFont:
case Color_PanelTitleFont:
- case Color_TabMenuSeparator:
case Color_Highlight:
case Color_HighlightText:
case Color_DeckBackground:
@@ -613,8 +593,6 @@ Theme::PropertyType Theme::GetPropertyType (const ThemeItem eItem)
case Int_DeckBorderSize:
case Int_DeckSeparatorHeight:
case Int_PanelTitleBarHeight:
- case Int_TabMenuPadding:
- case Int_TabMenuSeparatorPadding:
case Int_DeckLeftPadding:
case Int_DeckTopPadding:
case Int_DeckRightPadding: