diff options
author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2024-03-23 01:21:46 +0100 |
---|---|---|
committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2024-03-23 01:21:46 +0100 |
commit | bb3475e8eb379ee18f3d8f37caa8040b852a6213 (patch) | |
tree | 89975f1c23814a7ab5e16f5c7887f55f1888a27a /examples/example-qt.cpp | |
parent | aee72918851db8af296e096b759dfb7aaea17968 (diff) |
all: rename redis -> redict symbols and commentsmaster
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
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) { |