summaryrefslogtreecommitdiffstats
path: root/client/resourceaccess.cpp
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-06 02:28:54 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-06 02:28:54 +0100
commit7d3d0cd0670ad52eedf3c4e92eb4d11ce045fae4 (patch)
treef5c2304d2f6570683c9d2b9fa4e44640ac8dd23b /client/resourceaccess.cpp
parent165312053bec1d36b161088258e97cf2eaa1ca54 (diff)
downloadsink-7d3d0cd0670ad52eedf3c4e92eb4d11ce045fae4.tar.gz
sink-7d3d0cd0670ad52eedf3c4e92eb4d11ce045fae4.zip
re-use the builder
Diffstat (limited to 'client/resourceaccess.cpp')
-rw-r--r--client/resourceaccess.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/resourceaccess.cpp b/client/resourceaccess.cpp
index 641c203..6f1e114 100644
--- a/client/resourceaccess.cpp
+++ b/client/resourceaccess.cpp
@@ -72,11 +72,11 @@ void ResourceAccess::connected()
72 log(QString("Connected: ").arg(m_socket->fullServerName())); 72 log(QString("Connected: ").arg(m_socket->fullServerName()));
73 73
74 { 74 {
75 flatbuffers::FlatBufferBuilder fbb; 75 auto name = m_fbb.CreateString(QString::number((long long)this).toLatin1());
76 auto name = fbb.CreateString(QString::number((long long)this).toLatin1()); 76 auto command = Akonadi::CreateHandshake(m_fbb, name);
77 auto command = Akonadi::CreateHandshake(fbb, name); 77 Akonadi::FinishHandshakeBuffer(m_fbb, command);
78 Akonadi::FinishHandshakeBuffer(fbb, command); 78 Commands::write(m_socket, Commands::HandshakeCommand, m_fbb);
79 Commands::write(m_socket, Commands::HandshakeCommand, fbb); 79 m_fbb.Clear();
80 } 80 }
81 81
82 emit ready(true); 82 emit ready(true);