Skip to content

Commit

Permalink
fix: make it a ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Jul 30, 2023
1 parent 91a47c5 commit a2a5feb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/singletons/NativeMessaging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void NativeMessagingServer::ReceiverThread::run()
return;
}

auto messageQueue = std::move(std::get<ipc::IpcQueue>(result));
auto &messageQueue = std::get<ipc::IpcQueue>(result);
while (true)
{
auto buf = messageQueue.receive();
Expand Down
1 change: 0 additions & 1 deletion src/util/IpcQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class IpcQueuePrivate

IpcQueue::IpcQueue(IpcQueuePrivate *priv)
: private_(priv){};
IpcQueue::IpcQueue(IpcQueue &&) = default;
IpcQueue::~IpcQueue() = default;

std::variant<IpcQueue, QString> IpcQueue::tryReplaceOrCreate(
Expand Down
1 change: 0 additions & 1 deletion src/util/IpcQueue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class IpcQueuePrivate;
class IpcQueue
{
public:
IpcQueue(IpcQueue &&other);
~IpcQueue();

static std::variant<IpcQueue, QString> tryReplaceOrCreate(
Expand Down

0 comments on commit a2a5feb

Please sign in to comment.