Skip to content

Commit

Permalink
Improving message cloning.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Nov 16, 2024
1 parent 7e0dff4 commit c7b52f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/include/cc_tools_qt/ToolsMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CC_TOOLS_API ToolsMessage : public QObject
using Base = QObject;
public:
/// @brief Pointer to message object
using Ptr = std::shared_ptr<ToolsMessage>;
using Ptr = std::unique_ptr<ToolsMessage>;

/// @brief Type for sequence of raw bytes
using DataSeq = std::vector<std::uint8_t>;
Expand Down Expand Up @@ -160,7 +160,7 @@ class CC_TOOLS_API ToolsMessage : public QObject
};

/// @brief Smart pointer to @ref ToolsMessage
using ToolsMessagePtr = ToolsMessage::Ptr;
using ToolsMessagePtr = std::shared_ptr<ToolsMessage>;
using ToolsMessagesList = std::list<ToolsMessagePtr>;

} // namespace cc_tools_qt
Expand Down

0 comments on commit c7b52f2

Please sign in to comment.