mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Cleaner warning sidestep
This commit is contained in:
parent
e7ace39e44
commit
a27668428b
@ -42,8 +42,8 @@ void ColorHighlighting::set_items (DecodeHighlightingModel const& highlighting_m
|
|||||||
int index {0};
|
int index {0};
|
||||||
for (auto const& item : highlighting_model.items ())
|
for (auto const& item : highlighting_model.items ())
|
||||||
{
|
{
|
||||||
QLabel * example {nullptr};
|
QLabel * example;
|
||||||
QLabel * label {nullptr};
|
QLabel * label;
|
||||||
switch (index++)
|
switch (index++)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
@ -110,8 +110,9 @@ void ColorHighlighting::set_items (DecodeHighlightingModel const& highlighting_m
|
|||||||
example = ui->example16_label;
|
example = ui->example16_label;
|
||||||
label = ui->p16_label;
|
label = ui->p16_label;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
if (!example || !label) continue;
|
|
||||||
auto palette = example->parentWidget ()->palette ();
|
auto palette = example->parentWidget ()->palette ();
|
||||||
if (Qt::NoBrush != item.background_.style ())
|
if (Qt::NoBrush != item.background_.style ())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user