Skip to content

Commit

Permalink
fix: fix CommandOrigin default ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dofes committed Dec 30, 2024
1 parent 520097f commit 7d8a138
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
6 changes: 1 addition & 5 deletions src/mc/server/commands/CommandOrigin.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/platform/UUID.h"

// auto generated inclusion list
#include "mc/common/SubClientId.h"
Expand Down Expand Up @@ -34,11 +35,6 @@ class CommandOrigin {
::ll::TypedStorage<8, 16, ::mce::UUID> mUUID;
// NOLINTEND

public:
// prevent constructor by default
CommandOrigin& operator=(CommandOrigin const&);
CommandOrigin(CommandOrigin const&);

public:
// virtual functions
// NOLINTBEGIN
Expand Down
6 changes: 0 additions & 6 deletions src/mc/server/commands/PlayerCommandOrigin.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ class PlayerCommandOrigin : public ::CommandOrigin {
PlayerCommandOrigin(::Level& level, ::ActorUniqueID playerId) : mPlayerId(playerId), mLevel(level) {}
PlayerCommandOrigin(::Player& player) : mPlayerId(player.getOrCreateUniqueID()), mLevel(player.getLevel()) {}

public:
// prevent constructor by default
PlayerCommandOrigin& operator=(PlayerCommandOrigin const&);
PlayerCommandOrigin(PlayerCommandOrigin const&);
PlayerCommandOrigin();

public:
// virtual functions
// NOLINTBEGIN
Expand Down

0 comments on commit 7d8a138

Please sign in to comment.