Skip to content

Commit

Permalink
Merge remote-tracking branch 'ssvine/fix-rtti'
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellukashov committed Nov 20, 2024
2 parents a94d243 + cfae72f commit 9177907
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/NetBox/FarDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ inline TRect Rect(int32_t Left, int32_t Top, int32_t Right, int32_t Bottom)
return TRect(Left, Top, Right, Bottom);
}

constexpr const TObjectClassId OBJECT_CLASS_TDialogIdleThread = static_cast<TObjectClassId>(nb::counter_id());
class TFarDialogIdleThread final : public TSimpleThread
{
public:
Expand Down
1 change: 0 additions & 1 deletion src/NetBox/FarPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,6 @@ void TCustomFarPlugin::SaveTerminalScreen()
FarControl(FCTL_SETUSERSCREEN, 0, nullptr);
}

const TObjectClassId OBJECT_CLASS_TConsoleTitleParam = static_cast<TObjectClassId>(nb::counter_id());
class TConsoleTitleParam : public TObject
{
public:
Expand Down
1 change: 0 additions & 1 deletion src/NetBox/WinSCPFileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ void TFarInteractiveCustomCommand::Prompt(int32_t /*Index*/, const UnicodeString

// Attempt to allow keepalives from background thread.
// Not finished nor used.
const TObjectClassId OBJECT_CLASS_TKeepAliveThread = static_cast<TObjectClassId>(nb::counter_id());
class TKeepAliveThread final : public TSimpleThread
{
public:
Expand Down
6 changes: 6 additions & 0 deletions src/base/ObjIDs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,10 @@ const TObjectClassId OBJECT_CLASS_TRemoteFilePanelItem = static_cast<TObjectClas
const TObjectClassId OBJECT_CLASS_TWinSCPPlugin = static_cast<TObjectClassId>(nb::counter_id());
const TObjectClassId OBJECT_CLASS_TFarMessageData = static_cast<TObjectClassId>(nb::counter_id());

const TObjectClassId OBJECT_CLASS_TTerminalItem = static_cast<TObjectClassId>(nb::counter_id());
const TObjectClassId OBJECT_CLASS_TBackgroundTerminal = static_cast<TObjectClassId>(nb::counter_id());
const TObjectClassId OBJECT_CLASS_TDialogIdleThread = static_cast<TObjectClassId>(nb::counter_id());
const TObjectClassId OBJECT_CLASS_TConsoleTitleParam = static_cast<TObjectClassId>(nb::counter_id());
const TObjectClassId OBJECT_CLASS_TKeepAliveThread = static_cast<TObjectClassId>(nb::counter_id());

} // extern "C"
6 changes: 6 additions & 0 deletions src/base/ObjIDs.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,11 @@ extern const TObjectClassId OBJECT_CLASS_TRightsContainer;
extern const TObjectClassId OBJECT_CLASS_TCopyParamsContainer;
extern const TObjectClassId OBJECT_CLASS_TLabelList;

extern const TObjectClassId OBJECT_CLASS_TTerminalItem;
extern const TObjectClassId OBJECT_CLASS_TBackgroundTerminal;
extern const TObjectClassId OBJECT_CLASS_TDialogIdleThread;
extern const TObjectClassId OBJECT_CLASS_TConsoleTitleParam;
extern const TObjectClassId OBJECT_CLASS_TKeepAliveThread;

} // extern "C"

2 changes: 0 additions & 2 deletions src/core/Queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ class TReadDirectoryProgressAction final : public TUserAction
bool Cancel{false};
};

constexpr TObjectClassId OBJECT_CLASS_TTerminalItem = static_cast<TObjectClassId>(nb::counter_id());
class TTerminalItem final : public TSignalThread
{
friend class TQueueItem;
Expand Down Expand Up @@ -1250,7 +1249,6 @@ bool TTerminalQueue::ContinueParallelOperation() const

// TBackgroundItem

constexpr TObjectClassId OBJECT_CLASS_TBackgroundTerminal = static_cast<TObjectClassId>(nb::counter_id());
class TBackgroundTerminal final : public TSecondaryTerminal
{
friend class TTerminalItem;
Expand Down
2 changes: 1 addition & 1 deletion src/include/rtti.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ struct depth
template<int N>
struct mark
{
friend constexpr int adl_flag(flag<N>) { return N; }
friend constexpr int adl_flag(flag<N>) noexcept { return N; }
static constexpr int value = N;
};

Expand Down

0 comments on commit 9177907

Please sign in to comment.