Skip to content

Commit

Permalink
Fix some cppcoreguidelines-avoid-const-or-ref-data-members
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Oct 27, 2023
1 parent cff7a48 commit a2e0f1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/app/commands/deletenodescommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class DeleteNodesCommand : public ICommand
SelectionManager* _selectionManager = nullptr;

bool _multipleNodes = false;
const NodeIdSet _selectedNodeIds;
const NodeIdSet _nodeIds;
NodeIdSet _selectedNodeIds;
NodeIdSet _nodeIds;
std::vector<Edge> _edges;

public:
Expand Down
2 changes: 1 addition & 1 deletion source/app/watchdog.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class WatchdogWorker : public QObject
using clock_type = std::chrono::steady_clock;
clock_type::time_point _expectedExpiry;

const std::chrono::seconds _defaultTimeoutDuration{30};
std::chrono::seconds _defaultTimeoutDuration{30};
std::chrono::seconds _timeoutDuration{_defaultTimeoutDuration};

void startTimer();
Expand Down

0 comments on commit a2e0f1b

Please sign in to comment.