summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Klapetek <mklapetek@kde.org>2016-03-16 00:13:36 (GMT)
committerAlexandr Akulich <akulichalexander@gmail.com>2016-09-21 13:37:35 (GMT)
commit98111fa320a00eded781ad979091beebc10e7cac (patch)
tree33367e767857d3ee29c6af97c69a977da9effb67
parenta0492908262fe1ae1fa3d6e8e2cf7b9a229a3368 (diff)
[declarative] Conversation::isValid() needs to be const
Reviewed-by: Alexandr Akulich <akulichalexander@gmail.com>
-rw-r--r--KTp/Declarative/conversation.cpp2
-rw-r--r--KTp/Declarative/conversation.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/KTp/Declarative/conversation.cpp b/KTp/Declarative/conversation.cpp
index d78a8b6..a7c284c 100644
--- a/KTp/Declarative/conversation.cpp
+++ b/KTp/Declarative/conversation.cpp
@@ -172,7 +172,7 @@ Tp::AccountPtr Conversation::account() const {
return d->account;
}
-bool Conversation::isValid()
+bool Conversation::isValid() const
{
return d->valid;
}
diff --git a/KTp/Declarative/conversation.h b/KTp/Declarative/conversation.h
index f05ab5b..32d712f 100644
--- a/KTp/Declarative/conversation.h
+++ b/KTp/Declarative/conversation.h
@@ -61,7 +61,7 @@ public:
KTp::ContactPtr targetContact() const;
Tp::AccountPtr account() const;
- bool isValid();
+ bool isValid() const;
bool hasUnreadMessages() const;