Skip to content

Commit

Permalink
Fix preemptive initialization because of clang-tidy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdenKoperczak committed Dec 14, 2024
1 parent bed7989 commit c511ad6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions scwx-qt/source/scwx/qt/ui/edit_marker_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ static const auto logger_ = scwx::util::Logger::Create(logPrefix_);
class EditMarkerDialog::Impl
{
public:
explicit Impl(EditMarkerDialog* self) :
self_ {self},
deleteButton_ {self_->ui->buttonBox->addButton(
"Delete", QDialogButtonBox::DestructiveRole)}
{
}
explicit Impl(EditMarkerDialog* self) : self_ {self} {}

void show_color_dialog();
void show_icon_file_dialog();
Expand All @@ -48,7 +43,7 @@ class EditMarkerDialog::Impl
void handle_rejected();

EditMarkerDialog* self_;
QPushButton* deleteButton_;
QPushButton* deleteButton_ {nullptr};
QIcon get_colored_icon(const types::MarkerIconInfo& marker,
const std::string& color);

Expand Down Expand Up @@ -80,6 +75,8 @@ EditMarkerDialog::EditMarkerDialog(QWidget* parent) :
QString(""),
QString::fromStdString(markerIcon.second.name));
}
p->deleteButton_ =
ui->buttonBox->addButton("Delete", QDialogButtonBox::DestructiveRole);
p->connect_signals();
}

Expand Down

0 comments on commit c511ad6

Please sign in to comment.