diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-06-08 11:49:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-06-09 17:43:12 +0200 |
commit | 85582c40bca587017611bb332d1c9997c687cdfe (patch) | |
tree | 6732e2bacf1237b27f45de5950bc9e236bf1dc43 /svtools | |
parent | 1541ac50819c59923e100e297fa7b4d4a3316126 (diff) |
-Werror,-Wunused-but-set-variable (Clang 13 trunk)
The (only) use of lineColor at
> //m_pImpl->bUseGridLines ? _rDevice.SetLineColor( lineColor ) : _rDevice.SetLineColor();
had been commented out in 8578ba4dc736b53c3ca8461516e4024d276b3b05 "gridsort:
consolidated and fixed table cell rendering" and then cleaned away completely
with f4147a39374c7692728e8506961f23e59a069c45 "refactor TableControl to use
RenderContext"
Change-Id: I817800b26f4996a73a38fece22149ae87c2f9c01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116824
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/table/gridtablerenderer.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/svtools/source/table/gridtablerenderer.cxx b/svtools/source/table/gridtablerenderer.cxx index 8a68ccdbba2a..a0bcc2bb30c8 100644 --- a/svtools/source/table/gridtablerenderer.cxx +++ b/svtools/source/table/gridtablerenderer.cxx @@ -309,9 +309,6 @@ namespace svt::table Color backgroundColor = _rStyle.GetFieldColor(); - std::optional<Color> const aLineColor( m_pImpl->rModel.getLineColor() ); - Color lineColor = !aLineColor ? _rStyle.GetSeparatorColor() : *aLineColor; - Color const activeSelectionBackColor = lcl_getEffectiveColor(m_pImpl->rModel.getActiveSelectionBackColor(), _rStyle, &StyleSettings::GetHighlightColor); if (_bSelected) @@ -320,8 +317,6 @@ namespace svt::table backgroundColor = i_hasControlFocus ? activeSelectionBackColor : lcl_getEffectiveColor(m_pImpl->rModel.getInactiveSelectionBackColor(), _rStyle, &StyleSettings::GetDeactiveColor); - if (!aLineColor) - lineColor = backgroundColor; } else { |