Changeset 173e2ce96a7bde630476defe34fae1b5ed1baaba
- Timestamp:
- 02/03/11 19:17:04 (16 months ago)
- Author:
- Antti-Juhani Kaijanaho <antti-juhani@…>
- Children:
- b4f0cdb42e637fd017a965937ff7dd3170eb55ac
- Parents:
- 34bf9ca2b8b07128490ac650759c41566bb8d4a7
- git-committer:
- Antti-Juhani Kaijanaho <antti-juhani@…> (02/03/11 19:17:04)
- Message:
-
#79: Kill tlate::msg_value precursor and followup lists if they are empty
Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>
- Location:
- tlate
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r868b365
|
r173e2ce
|
|
| 1 | 1 | /* This file is part of Alue, the multiprotocol Internet discussion daemon |
| 2 | 2 | |
| 3 | | Copyright © 2009 Antti-Juhani Kaijanaho |
| | 3 | Copyright © 2009, 2011 Antti-Juhani Kaijanaho |
| 4 | 4 | |
| 5 | 5 | Alue is free software: you can redistribute it and/or modify it |
| … |
… |
|
| 67 | 67 | |
| 68 | 68 | Seq &operator*() { return seq; } |
| | 69 | const Seq &operator*() const { return seq; } |
| 69 | 70 | Seq *operator->() { return &seq; } |
| | 71 | const Seq *operator->() const { return &seq; } |
| 70 | 72 | Seq &get() { return seq; } |
| | 73 | const Seq &get() const { return seq; } |
| 71 | 74 | |
| 72 | 75 | virtual const_iterator begin() const { |
| … |
… |
|
| 82 | 85 | seqval(Seq seq, ValFac vf) |
| 83 | 86 | { |
| 84 | | boost::shared_ptr<basic_sequential_value<Seq,ValFac> > rv |
| 85 | | (new basic_sequential_value<Seq,ValFac>(seq, vf)); |
| | 87 | boost::shared_ptr<basic_sequential_value<Seq,ValFac> > rv; |
| | 88 | if (seq.begin() != seq.end()) |
| | 89 | rv.reset(new basic_sequential_value<Seq,ValFac> |
| | 90 | (seq, vf)); |
| 86 | 91 | return rv; |
| 87 | 92 | } |
-
|
r868b365
|
r173e2ce
|
|
| 1 | 1 | /* This file is part of Alue, the multiprotocol Internet discussion daemon |
| 2 | 2 | |
| 3 | | Copyright © 2009 Antti-Juhani Kaijanaho |
| | 3 | Copyright © 2009, 2011 Antti-Juhani Kaijanaho |
| 4 | 4 | |
| 5 | 5 | Alue is free software: you can redistribute it and/or modify it |
| … |
… |
|
| 42 | 42 | {} |
| 43 | 43 | void push_back(value::const_ptr v) { get().push_back(v); } |
| | 44 | bool empty() const { return get().empty(); } |
| 44 | 45 | }; |
| 45 | 46 | } |
-
|
r34bf9ca
|
r173e2ce
|
|
| 195 | 195 | ps->push_back(msg_value::mk(it, u)); |
| 196 | 196 | } |
| 197 | | rv = ps; |
| | 197 | if (!ps->empty()) rv = ps; |
| 198 | 198 | } |
| 199 | 199 | else if (rauthz && var == "thread") |