Skip to content

Commit 0e35616

Browse files
generatedunixname537391475639613meta-codesync[bot]
authored andcommitted
fbcode/fboss/agent/state
Reviewed By: jasmeetbagga Differential Revision: D90976317 fbshipit-source-id: 3173d66d341de0e6584a897401f0a8f0923f2aeb
1 parent 4150f71 commit 0e35616

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

fboss/agent/state/Route.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ class Route : public ThriftStructNode<Route<AddrT>, ThriftFieldsT<AddrT>> {
322322
nexthopsmulti->update(clientId, entry);
323323
}
324324

325+
~Route() = default;
326+
325327
template <typename... Args>
326328
static ThriftFieldsT<AddrT> makeThrift(Args&&... args) {
327329
auto fields = LegacyFields(std::forward<Args>(args)...);
@@ -530,6 +532,8 @@ class Route : public ThriftStructNode<Route<AddrT>, ThriftFieldsT<AddrT>> {
530532
// no copy or assign operator
531533
Route(const Route&) = delete;
532534
Route& operator=(const Route&) = delete;
535+
Route(Route&&) = delete;
536+
Route& operator=(Route&&) = delete;
533537

534538
// Inherit the constructors required for clone()
535539
using RouteBase::RouteBase;

fboss/agent/state/StateUpdate.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class StateUpdate {
4141
static_cast<int>(BehaviorFlags::NONE);
4242
explicit StateUpdate(folly::StringPiece name, int behaviorFlags)
4343
: name_(name.str()), behaviorFlags_(behaviorFlags) {}
44-
virtual ~StateUpdate() {}
44+
virtual ~StateUpdate() = default;
4545

4646
const std::string& getName() const {
4747
return name_;
@@ -95,6 +95,8 @@ class StateUpdate {
9595
// Forbidden copy constructor and assignment operator
9696
StateUpdate(StateUpdate const&) = delete;
9797
StateUpdate& operator=(StateUpdate const&) = delete;
98+
StateUpdate(StateUpdate&&) = delete;
99+
StateUpdate& operator=(StateUpdate&&) = delete;
98100

99101
std::string name_;
100102
int behaviorFlags_{static_cast<int>(BehaviorFlags::NONE)};

0 commit comments

Comments
 (0)