bug-radar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gmetadom-cppdev] GdomeSmartDOM::Document document;


From: Luca Padovani
Subject: Re: [Gmetadom-cppdev] GdomeSmartDOM::Document document;
Date: Sat, 3 Aug 2002 08:36:00 +0200 (CEST)

Jeff,

> I'm creating a class that needs to contain a Document object.  However,
> there doesn't seem to be a simple constructor (have I missed a headerfile
> again?) 

No DOM class has a simple constructor. The only thing you can do right
now is something like

        Document doc(0);

constructors are not specified in DOM. I thought having to explicitly
initialize the pointer (to 0, in this case) was somehow clearer, but
another possibility is to have 0 as the default value, so to make that
constructor a simple one.

> in a try block (gtkmathview also doesn't seem like it's catching exceptions
> Document definitions).

not yet ;-)

ACTION: add default value to constructor.

Luca




reply via email to

[Prev in Thread] Current Thread [Next in Thread]