diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:59:01 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-03 04:24:39 +0200 |
commit | ad4317e2e02c018dcfb6c49259cfdf580637f5bd (patch) | |
tree | 4ff3110491ed677d979aca9a5711507195a66715 /akregator/src/article.cpp | |
parent | e3649f744289c180537d2d8474dc0e39050e654f (diff) | |
download | tdepim-ad4317e2e02c018dcfb6c49259cfdf580637f5bd.tar.gz tdepim-ad4317e2e02c018dcfb6c49259cfdf580637f5bd.zip |
Remove additional unneeded tq method conversions
(cherry picked from commit 716a5de8870d7c02bb4d0aed72f30291b17b763a)
Diffstat (limited to 'akregator/src/article.cpp')
-rw-r--r-- | akregator/src/article.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/akregator/src/article.cpp b/akregator/src/article.cpp index 36ba87d63..8b62509f4 100644 --- a/akregator/src/article.cpp +++ b/akregator/src/article.cpp @@ -109,7 +109,7 @@ void Article::initialize(RSS::Article article, Backend::FeedStorage* archive) if (article.meta("deleted") == "true") { // if article is in deleted state, we just add the status and omit the rest d->status = Private::Read | Private::Deleted; - d->archive->seStatus(d->guid, d->status); + d->archive->setStatus(d->guid, d->status); } else { // article is not deleted, let's add it to the archive @@ -157,7 +157,7 @@ void Article::initialize(RSS::Article article, Backend::FeedStorage* archive) int statusInt = status.toInt(); if (statusInt == New) statusInt = Unread; - seStatus(statusInt); + setStatus(statusInt); } setKeep(article.meta("keep") == "true"); } @@ -210,9 +210,9 @@ void Article::setDeleted() if (isDeleted()) return; - seStatus(Read); + setStatus(Read); d->status = Private::Deleted | Private::Read; - d->archive->seStatus(d->guid, d->status); + d->archive->setStatus(d->guid, d->status); d->archive->setDeleted(d->guid); if (d->feed) @@ -299,7 +299,7 @@ int Article::status() const return Unread; } -void Article::seStatus(int stat) +void Article::setStatus(int stat) { // use status() rather than statusBits() here to filter out status flags that we are not // interested in @@ -319,7 +319,7 @@ void Article::seStatus(int stat) d->status = ( d->status | Private::New) & ~Private::Read; break; } - d->archive->seStatus(d->guid, d->status); + d->archive->setStatus(d->guid, d->status); if (d->feed) d->feed->setArticleChanged(*this, oldStatus); } @@ -404,7 +404,7 @@ RSS::Enclosure Article::enclosure() const void Article::setKeep(bool keep) { d->status = keep ? ( statusBits() | Private::Keep) : ( statusBits() & ~Private::Keep); - d->archive->seStatus(d->guid, d->status); + d->archive->setStatus(d->guid, d->status); if (d->feed) d->feed->setArticleChanged(*this); } |