On Mon, 12 Apr 2004 19:35:44 GMT, John Cho <johncho@johncho.us> wrote:
[color=blue]
>// note to leor, display works fine, you must have
>// pressed update
>[/color]
Whoops, so I must've. OK, so let's say you select "update" and then change
your mind. You still don't provide an "escape" mechanism.
This didn't compile with Comeau, BTW, but the reason is subtle (and
evidently the issue is not even diagnosed under certain other compilers):
when you call deleteNote and updateNode, you pass a temporary VideoTape
object as argument; the corresponding parameters are declared as
reference-to-non-const, and that is a no-no. To make it kosher, just add a
"const" in the definitions and declarations for those two functions. Better
yet, change the design so all you pass in situations such as those is the
tapename directly (by const ref, optimally), avoiding the construction of
that temporary VideoTape object for no good reason.
If I have time to look at more of this I might, but that's all I've looked
at for now.
-leor
--
Leor Zolman --- BD Software ---
www.bdsoft.com
On-Site Training in C/C++, Java, Perl and Unix
C++ users: Download BD Software's free STL Error Message Decryptor at:
www.bdsoft.com/tools/stlfilt.html