[bt-devel] backend
Joachim Ansorg
bt-devel@crosswire.org
Sat, 28 Oct 2000 17:48:27 +0000
Hi!
> > Hm, but if we say something like this:
> > CSwordVerseKey *key1 = new CSwordVerseKey(m_module);
> > CSwordVerseKey *key2 = new CSwordVerseKey(m_module);
> > .....
> > key1 = key2->getNextVerse();
> but it might be even better to use
> void CSwordVerseKey::getNextVerse()
> and then like this
> CSwordVerseKey *key1 = new CSwordVerseKey(m_module);
> CSwordVerseKey *key2 = new CSwordVerseKey(m_module);
> ...
> key2 = key1;
> key2->getNextVerse();
> 1 line longer, but much more safe and simple.
Mmmh, Ok. I'm convinced, but we have to delete the old key before if it's not
used elsewhere.
Do you want to change it?
BTW, everybody should now add to the Changelog.
--Joachim