summaryrefslogtreecommitdiffstats
path: root/common/storage_common.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-08 16:51:06 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-10 10:40:01 +0200
commitc08ac164d20c56e4b2890ebc9f2acda2c5723b5c (patch)
tree88a7f41d6ccd266db049d9b7c3d16c8a41905d7a /common/storage_common.cpp
parent615fc9df81555ce5a2b16747640beba43e109ef4 (diff)
downloadsink-c08ac164d20c56e4b2890ebc9f2acda2c5723b5c.tar.gz
sink-c08ac164d20c56e4b2890ebc9f2acda2c5723b5c.zip
Cleanup
Diffstat (limited to 'common/storage_common.cpp')
-rw-r--r--common/storage_common.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/common/storage_common.cpp b/common/storage_common.cpp
index 512a13f..2c23f97 100644
--- a/common/storage_common.cpp
+++ b/common/storage_common.cpp
@@ -66,7 +66,9 @@ qint64 Storage::maxRevision(const Akonadi2::Storage::Transaction &transaction)
66 r = revision.toLongLong(); 66 r = revision.toLongLong();
67 return false; 67 return false;
68 }, [](const Error &error){ 68 }, [](const Error &error){
69 std::cout << "Coultn'd find uid for revision "; 69 if (error.code != Akonadi2::Storage::NotFound) {
70 std::cout << "Coultn'd find the maximum revision" << std::endl;
71 }
70 }); 72 });
71 return r; 73 return r;
72} 74}
@@ -78,7 +80,7 @@ QByteArray Storage::getUidFromRevision(const Akonadi2::Storage::Transaction &tra
78 uid = value; 80 uid = value;
79 return false; 81 return false;
80 }, [revision](const Error &error){ 82 }, [revision](const Error &error){
81 std::cout << "Coultn'd find uid for revision " << revision; 83 std::cout << "Coultn'd find uid for revision " << revision << std::endl;
82 }); 84 });
83 return uid; 85 return uid;
84} 86}
@@ -90,7 +92,7 @@ QByteArray Storage::getTypeFromRevision(const Akonadi2::Storage::Transaction &tr
90 type = value; 92 type = value;
91 return false; 93 return false;
92 }, [revision](const Error &error){ 94 }, [revision](const Error &error){
93 std::cout << "Coultn'd find type for revision " << revision; 95 std::cout << "Coultn'd find type for revision " << revision << std::endl;
94 }); 96 });
95 return type; 97 return type;
96} 98}