diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/imapresource/imapserverproxy.cpp | 2 | ||||
-rw-r--r-- | examples/maildirresource/maildirresource.cpp | 1 | ||||
-rw-r--r-- | examples/mailtransportresource/mailtransport.cpp | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/examples/imapresource/imapserverproxy.cpp b/examples/imapresource/imapserverproxy.cpp index a82e3ac..703caca 100644 --- a/examples/imapresource/imapserverproxy.cpp +++ b/examples/imapresource/imapserverproxy.cpp | |||
@@ -87,7 +87,7 @@ class SessionUiProxy : public KIMAP::SessionUiProxy { | |||
87 | } | 87 | } |
88 | }; | 88 | }; |
89 | 89 | ||
90 | ImapServerProxy::ImapServerProxy(const QString &serverUrl, int port) : mSession(new KIMAP::Session(serverUrl, port)) | 90 | ImapServerProxy::ImapServerProxy(const QString &serverUrl, int port) : mSession(new KIMAP::Session(serverUrl, qint16(port))) |
91 | { | 91 | { |
92 | mSession->setUiProxy(SessionUiProxy::Ptr(new SessionUiProxy)); | 92 | mSession->setUiProxy(SessionUiProxy::Ptr(new SessionUiProxy)); |
93 | mSession->setTimeout(10); | 93 | mSession->setTimeout(10); |
diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp index 23e25c4..ea780cc 100644 --- a/examples/maildirresource/maildirresource.cpp +++ b/examples/maildirresource/maildirresource.cpp | |||
@@ -164,7 +164,6 @@ public: | |||
164 | auto identifier = oldMaildir.moveEntryTo(oldIdentifier, maildir); | 164 | auto identifier = oldMaildir.moveEntryTo(oldIdentifier, maildir); |
165 | return path + "/" + identifier; | 165 | return path + "/" + identifier; |
166 | } | 166 | } |
167 | return oldPath; | ||
168 | } | 167 | } |
169 | 168 | ||
170 | void newEntity(const QByteArray &uid, qint64 revision, Sink::ApplicationDomain::BufferAdaptor &newEntity, Sink::Storage::Transaction &transaction) Q_DECL_OVERRIDE | 169 | void newEntity(const QByteArray &uid, qint64 revision, Sink::ApplicationDomain::BufferAdaptor &newEntity, Sink::Storage::Transaction &transaction) Q_DECL_OVERRIDE |
diff --git a/examples/mailtransportresource/mailtransport.cpp b/examples/mailtransportresource/mailtransport.cpp index 5985562..4f7e59b 100644 --- a/examples/mailtransportresource/mailtransport.cpp +++ b/examples/mailtransportresource/mailtransport.cpp | |||
@@ -48,7 +48,7 @@ static size_t payload_source(void *ptr, size_t size, size_t nmemb, void *userp) | |||
48 | if (len > size * nmemb) { | 48 | if (len > size * nmemb) { |
49 | len = size * nmemb; | 49 | len = size * nmemb; |
50 | } | 50 | } |
51 | fprintf(stderr, "read n bytes: %d\n",len); | 51 | fprintf(stderr, "read n bytes: %d\n", int(len)); |
52 | memcpy(ptr, data, len); | 52 | memcpy(ptr, data, len); |
53 | upload_ctx->offset += len; | 53 | upload_ctx->offset += len; |
54 | return len; | 54 | return len; |