diff options
Diffstat (limited to 'examples/example-qt.cpp')
-rw-r--r-- | examples/example-qt.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/example-qt.cpp b/examples/example-qt.cpp index 9ed61e8..8f6926c 100644 --- a/examples/example-qt.cpp +++ b/examples/example-qt.cpp @@ -12,9 +12,9 @@ using namespace std; #include "example-qt.h" -void getCallback(redisAsyncContext *, void * r, void * privdata) { +void getCallback(redictAsyncContext *, void * r, void * privdata) { - redisReply * reply = static_cast<redisReply *>(r); + redictReply * reply = static_cast<redictReply *>(r); ExampleQt * ex = static_cast<ExampleQt *>(privdata); if (reply == nullptr || ex == nullptr) return; @@ -25,18 +25,18 @@ void getCallback(redisAsyncContext *, void * r, void * privdata) { void ExampleQt::run() { - m_ctx = redisAsyncConnect("localhost", 6379); + m_ctx = redictAsyncConnect("localhost", 6379); if (m_ctx->err) { cerr << "Error: " << m_ctx->errstr << endl; - redisAsyncFree(m_ctx); + redictAsyncFree(m_ctx); emit finished(); } m_adapter.setContext(m_ctx); - redisAsyncCommand(m_ctx, NULL, NULL, "SET key %s", m_value); - redisAsyncCommand(m_ctx, getCallback, this, "GET key"); + redictAsyncCommand(m_ctx, NULL, NULL, "SET key %s", m_value); + redictAsyncCommand(m_ctx, getCallback, this, "GET key"); } int main (int argc, char **argv) { |