Skip to content

Commit

Permalink
gui: address clang-tidy comments
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Gadfort <[email protected]>
  • Loading branch information
gadfort committed Oct 24, 2024
1 parent a884c81 commit c8d8f2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/gui/src/dbDescriptors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,7 @@ Descriptor::Actions DbNetDescriptor::getActions(std::any object) const

Selected DbNetDescriptor::makeSelected(std::any object) const
{
const auto net_selected = BaseDbDescriptor::makeSelected(object);
Selected net_selected = BaseDbDescriptor::makeSelected(object);
if (net_selected) {
return net_selected;
}
Expand Down Expand Up @@ -3792,7 +3792,7 @@ Descriptor::Properties DbSiteDescriptor::getDBProperties(

Selected DbSiteDescriptor::makeSelected(std::any object) const
{
const auto site_selected = BaseDbDescriptor::makeSelected(object);
Selected site_selected = BaseDbDescriptor::makeSelected(object);
if (site_selected) {
return site_selected;
}
Expand Down
6 changes: 3 additions & 3 deletions src/gui/src/dbDescriptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ class BaseDbDescriptor : public Descriptor
public:
BaseDbDescriptor(odb::dbDatabase* db);

virtual Properties getProperties(std::any object) const override;
Properties getProperties(std::any object) const override;

virtual Selected makeSelected(std::any object) const override;
virtual bool lessThan(std::any l, std::any r) const override;
Selected makeSelected(std::any object) const override;
bool lessThan(std::any l, std::any r) const override;

protected:
odb::dbDatabase* db_;
Expand Down

0 comments on commit c8d8f2a

Please sign in to comment.