diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-04-20 00:50:22 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-04-20 00:50:22 +0000 |
| commit | 3505201f3333c937b5b870d70019d400c722a69f (patch) | |
| tree | def64ac6be50375e43da5e3e91eb443dd4c171fc /src/PStringNumLoop.h | |
| parent | 99733a84e2102739ee7c9de08ffae9e9216b6003 (diff) | |
2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Rewritten SharedHandle. Now copy constructor taking raw pointer
has
keyword explicit and SharedHandle's default constructor
initializes
its internal obj to null, old implementation initializes it
using
obj's default constructor.
To assign null, write SharedHandle<T> x(...); x.reset();
TODO: test/SharedHandleTest.cc needs more tests.
* src/SharedHandle.h
Diffstat (limited to 'src/PStringNumLoop.h')
| -rw-r--r-- | src/PStringNumLoop.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/PStringNumLoop.h b/src/PStringNumLoop.h index b12ad3ee..56148fcf 100644 --- a/src/PStringNumLoop.h +++ b/src/PStringNumLoop.h @@ -59,13 +59,21 @@ public: PStringNumLoop(unsigned int startValue, unsigned int endValue, unsigned int step, const NumberDecoratorHandle& nd, - const PStringDatumHandle& next = 0): + const PStringDatumHandle& next): _startValue(startValue), _endValue(endValue), _step(step), _numberDecorator(nd), _next(next) {} + PStringNumLoop(unsigned int startValue, unsigned int endValue, + unsigned int step, + const NumberDecoratorHandle& nd): + _startValue(startValue), + _endValue(endValue), + _step(step), + _numberDecorator(nd) {} + virtual ~PStringNumLoop() {} virtual void accept(PStringVisitor* visitor) |
