Permalink
Browse files

fix article interface

  • Loading branch information...
1 parent 85d2d72 commit b6c41a4d1df912beee2b631ffa1dcb43c7084cdd @lostcoder committed Jun 27, 2011
Showing with 9 additions and 13 deletions.
  1. +3 −3 pan/data-impl/data-impl.h
  2. +6 −10 pan/data/article.h
@@ -305,15 +305,15 @@ namespace pan
Quark author;
Quark subject;
ArticleImpl() {}
- Quark get_message_id() const
+ const Quark& get_message_id() const
{
return message_id;
}
- Quark get_author() const
+ const Quark& get_author() const
{
return author;
}
- Quark get_subject() const
+ const Quark& get_subject() const
{
return subject;
}
View
@@ -72,14 +72,10 @@ namespace pan
enum PartState { SINGLE, INCOMPLETE, COMPLETE };
PartState get_part_state () const;
- protected:
- //Quark message_id;
- //Quark author;
- //Quark subject;
public:
- virtual Quark get_message_id() const = 0;
- virtual Quark get_author() const = 0;
- virtual Quark get_subject() const = 0;
+ virtual const Quark& get_message_id() const = 0;
+ virtual const Quark& get_author() const = 0;
+ virtual const Quark& get_subject() const = 0;
public:
time_t time_posted;
@@ -129,15 +125,15 @@ namespace pan
{}
void clear();
- Quark get_message_id() const
+ const Quark& get_message_id() const
{
return message_id;
}
- Quark get_subject() const
+ const Quark& get_subject() const
{
return subject;
}
- Quark get_author() const
+ const Quark& get_author() const
{
return author;
}

0 comments on commit b6c41a4

Please sign in to comment.