summaryrefslogtreecommitdiffstats
path: root/kresources/carddav
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-23 11:51:17 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-23 11:51:17 -0600
commit9e6ec3a244220285be43514d4c2465e2267f7126 (patch)
tree1c829df09eb5bbfb0e725635bb2ded206efef564 /kresources/carddav
parenta0cb6d90bf4e9b5eb2b489c57ab681e98373a8b6 (diff)
downloadtdepim-9e6ec3a244220285be43514d4c2465e2267f7126.tar.gz
tdepim-9e6ec3a244220285be43514d4c2465e2267f7126.zip
Terminate kdDebug calls with newlines
This closes Bug 631
Diffstat (limited to 'kresources/carddav')
-rw-r--r--kresources/carddav/config.cpp4
-rw-r--r--kresources/carddav/job.cpp2
-rw-r--r--kresources/carddav/preferences.cpp6
-rw-r--r--kresources/carddav/preferences.h2
-rw-r--r--kresources/carddav/reader.cpp8
-rw-r--r--kresources/carddav/resource.cpp2
-rw-r--r--kresources/carddav/writer.cpp12
7 files changed, 18 insertions, 18 deletions
diff --git a/kresources/carddav/config.cpp b/kresources/carddav/config.cpp
index 390e3adc..9b01eb5d 100644
--- a/kresources/carddav/config.cpp
+++ b/kresources/carddav/config.cpp
@@ -46,7 +46,7 @@ using namespace KABC;
ResourceCardDav* ResourceCardDavConfig::getCardDavResource(KRES::Resource* resource) {
ResourceCardDav *res = dynamic_cast<ResourceCardDav *>( resource );
if (!res) {
- kdDebug() << "invalid resource type";
+ kdDebug() << "invalid resource type" << '\n';
}
return res;
@@ -58,7 +58,7 @@ CardDavPrefs* ResourceCardDavConfig::getPrefs(ResourceCardDav* res) {
if (res) {
p = res->prefs();
if (!p) {
- kdDebug() << "CardDAV: res->prefs() returned NULL";
+ kdDebug() << "CardDAV: res->prefs() returned NULL" << '\n';
}
}
diff --git a/kresources/carddav/job.cpp b/kresources/carddav/job.cpp
index 994964af..9c288650 100644
--- a/kresources/carddav/job.cpp
+++ b/kresources/carddav/job.cpp
@@ -19,7 +19,7 @@
#include <tqmutex.h>
-#define log(s) kdDebug() << s;
+#define log(s) kdDebug() << s << '\n';
/*=========================================================================
| NAMESPACE
diff --git a/kresources/carddav/preferences.cpp b/kresources/carddav/preferences.cpp
index cf2cdbc5..17e0216a 100644
--- a/kresources/carddav/preferences.cpp
+++ b/kresources/carddav/preferences.cpp
@@ -68,7 +68,7 @@ Wallet* CardDavPrefs::getWallet() {
// the wallet is not marked as inaccessible
if (NULL == mWallet) {
- kdDebug() << "creating wallet for " + mPrefix;
+ kdDebug() << "creating wallet for " + mPrefix << '\n';
mWallet = Wallet::openWallet(Wallet::NetworkWallet(), 0);
if (NULL == mWallet) {
@@ -181,13 +181,13 @@ TQString CardDavPrefs::getusername() {
}
void CardDavPrefs::setRememberPassword(bool v) {
- kdDebug() << "remember: " << v;
+ kdDebug() << "remember: " << v << '\n';
CardDavPrefsSkel::setRememberPassword(v);
if (!v) {
// we should not remember password. If there is one already stored, it must be removed.
- kdDebug() << "removing password from wallet";
+ kdDebug() << "removing password from wallet" << '\n';
removePasswordFromWallet();
}
}
diff --git a/kresources/carddav/preferences.h b/kresources/carddav/preferences.h
index eab9274c..0f074b4d 100644
--- a/kresources/carddav/preferences.h
+++ b/kresources/carddav/preferences.h
@@ -53,7 +53,7 @@ public:
}
virtual ~CardDavPrefs() {
- kdDebug() << "removing wallet";
+ kdDebug() << "removing wallet" << '\n';
removeWallet();
}
diff --git a/kresources/carddav/reader.cpp b/kresources/carddav/reader.cpp
index d71d5236..62645535 100644
--- a/kresources/carddav/reader.cpp
+++ b/kresources/carddav/reader.cpp
@@ -33,23 +33,23 @@ void CardDavReader::cleanJob() {
}
int CardDavReader::runJob(runtime_info* RT) {
- kdDebug() << "reader::run, url: " << url();
+ kdDebug() << "reader::run, url: " << url() << '\n';
response* result = carddav_get_response();
CARDDAV_RESPONSE res = OK;
- kdDebug() << "getting all objects";
+ kdDebug() << "getting all objects" << '\n';
if (getUseURI() == false)
res = carddav_getall_object(result, std::string(url().ascii()).c_str(), RT);
else
res = carddav_getall_object_by_uri(result, std::string(url().ascii()).c_str(), RT);
if (OK == res) {
- kdDebug() << "success";
+ kdDebug() << "success" << '\n';
if (result->msg) {
mData = result->msg;
} else {
- kdDebug() << "empty collection";
+ kdDebug() << "empty collection" << '\n';
// empty collection
mData = "";
}
diff --git a/kresources/carddav/resource.cpp b/kresources/carddav/resource.cpp
index a708eef0..8d7ad025 100644
--- a/kresources/carddav/resource.cpp
+++ b/kresources/carddav/resource.cpp
@@ -61,7 +61,7 @@ const int ResourceCardDav::DEFAULT_SAVE_POLICY = ResourceCached::SaveDelay
| UTILITY
========================================================================*/
-#define log(s) kdDebug() << identifier() << ": " << (s);
+#define log(s) kdDebug() << identifier() << ": " << (s) << '\n';
/*=========================================================================
| CONSTRUCTOR / DESTRUCTOR
diff --git a/kresources/carddav/writer.cpp b/kresources/carddav/writer.cpp
index 7141bf30..68bf126d 100644
--- a/kresources/carddav/writer.cpp
+++ b/kresources/carddav/writer.cpp
@@ -47,17 +47,17 @@ int CardDavWriter::runJob(runtime_info* RT) {
int res = OK;
- kdDebug() << "pushing added objects";
+ kdDebug() << "pushing added objects" << '\n';
res = pushObjects(mAdded, carddav_add_object, OK, RT);
if (OK == res) {
#ifdef USE_CARDDAV_MODIFY
- kdDebug() << "pushing changed objects";
+ kdDebug() << "pushing changed objects" << '\n';
if (getUseURI() == false)
res = pushObjects(mChanged, carddav_modify_object, OK, RT);
else
res = pushObjects(mChanged, carddav_modify_object_by_uri, OK, RT);
if (OK == res) {
- kdDebug() << "pushing deleted objects";
+ kdDebug() << "pushing deleted objects" << '\n';
while (mDeleted.contains("BEGIN:VCARD", TRUE) > 0) {
int endLocation = mDeleted.find("END:VCARD", 0, TRUE);
TQString deletedCurSeq = mDeleted.mid(0, endLocation+9);
@@ -69,19 +69,19 @@ int CardDavWriter::runJob(runtime_info* RT) {
}
}
#else // if USE_CARDDAV_MODIFY
- kdDebug() << "pushing changed objects (delete)";
+ kdDebug() << "pushing changed objects (delete)" << '\n';
if (getUseURI() == false)
res = pushObjects(mChanged, carddav_delete_object, OK, RT);
else
res = pushObjects(mChanged, carddav_delete_object_by_uri, OK, RT);
if (OK == res) {
- kdDebug() << "pushing changed objects (add)";
+ kdDebug() << "pushing changed objects (add)" << '\n';
if (getUseURI() == false)
res = pushObjects(mChanged, carddav_add_object, OK, RT);
else
res = pushObjects(mChanged, carddav_add_object, OK, RT);
if (OK == res) {
- kdDebug() << "pushing deleted objects";
+ kdDebug() << "pushing deleted objects" << '\n';
while (mDeleted.contains("BEGIN:VCARD", TRUE) > 0) {
int endLocation = mDeleted.find("END:VCARD", 0, TRUE);
TQString deletedCurSeq = mDeleted.mid(0, endLocation+9);