Changeset 173e2ce96a7bde630476defe34fae1b5ed1baaba for tlate
- Timestamp:
- 02/03/11 19:17:04 (16 months ago)
- Children:
- b4f0cdb42e637fd017a965937ff7dd3170eb55ac
- Parents:
- 34bf9ca2b8b07128490ac650759c41566bb8d4a7
- git-committer:
- Antti-Juhani Kaijanaho <antti-juhani@…> (02/03/11 19:17:04)
- Location:
- tlate
- Files:
-
- 3 modified
-
basic_sequential_value.hh (modified) (3 diffs)
-
list_value.hh (modified) (2 diffs)
-
msg_value.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tlate/basic_sequential_value.hh
r868b365 r173e2ce 1 1 /* This file is part of Alue, the multiprotocol Internet discussion daemon 2 2 3 Copyright © 2009 Antti-Juhani Kaijanaho3 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 } -
tlate/list_value.hh
r868b365 r173e2ce 1 1 /* This file is part of Alue, the multiprotocol Internet discussion daemon 2 2 3 Copyright © 2009 Antti-Juhani Kaijanaho3 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 } -
tlate/msg_value.cc
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")
