[pan2: 20/68] Make ArticleCache::get_message const.
- From: Petr Kovář <pmkovar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2: 20/68] Make ArticleCache::get_message const.
- Date: Tue, 8 Feb 2011 22:59:42 +0000 (UTC)
commit b389830ab1bc64c67e2d92f2f080811edef232ef
Author: K. Haley <haleykd users sf net>
Date: Tue Mar 23 15:13:19 2010 -0600
Make ArticleCache::get_message const.
This function doesn't affect the cache state so we should be able to get the message body from a const&.
pan/data/article-cache.cc | 2 +-
pan/data/article-cache.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pan/data/article-cache.cc b/pan/data/article-cache.cc
index b4f9a94..d7a211f 100644
--- a/pan/data/article-cache.cc
+++ b/pan/data/article-cache.cc
@@ -398,7 +398,7 @@ ArticleCache :: get_message_mem_stream (const Quark& mid) const
}
GMimeMessage*
-ArticleCache :: get_message (const mid_sequence_t& mids)
+ArticleCache :: get_message (const mid_sequence_t& mids) const
{
debug ("trying to get a message with " << mids.size() << " parts");
GMimeMessage * retval = NULL;
diff --git a/pan/data/article-cache.h b/pan/data/article-cache.h
index a292528..01d5a2c 100644
--- a/pan/data/article-cache.h
+++ b/pan/data/article-cache.h
@@ -70,7 +70,7 @@ namespace pan
void resize ();
void clear ();
- GMimeMessage* get_message (const mid_sequence_t&);
+ GMimeMessage* get_message (const mid_sequence_t&) const;
typedef std::vector<std::string> strings_t;
strings_t get_filenames (const mid_sequence_t&);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]