Skip to content

Commit 187eb10

Browse files
committed
incorporated code review feedback
Signed-off-by: LucasYuki <[email protected]>
1 parent fc6b8f6 commit 187eb10

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/gui/src/staGui.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,9 +1362,11 @@ std::vector<std::set<const sta::Pin*>> TimingControlsDialog::getThruPins() const
13621362
return pins;
13631363
}
13641364

1365-
const sta::ClockSet* TimingControlsDialog::getClocks(bool return_null_if_all)
1365+
const sta::ClockSet* TimingControlsDialog::getClocks()
13661366
{
1367-
if (return_null_if_all && clock_box_->isAllSelected()) {
1367+
if (clock_box_->isAllSelected()) {
1368+
// returns nullptr if all clocks are selected,
1369+
// so the STA doesn't need to filter by clock
13681370
return nullptr;
13691371
}
13701372

src/gui/src/staGui.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ class TimingControlsDialog : public QDialog
410410
std::set<const sta::Pin*> getFromPins() const { return from_->getPins(); }
411411
std::vector<std::set<const sta::Pin*>> getThruPins() const;
412412
std::set<const sta::Pin*> getToPins() const { return to_->getPins(); }
413-
const sta::ClockSet* getClocks(bool return_null_if_all = true);
413+
const sta::ClockSet* getClocks();
414414

415415
const sta::Pin* convertTerm(Gui::Term term) const;
416416

0 commit comments

Comments
 (0)