should I delete the pointer by myself, or not?
- From: "Sun Wuan" <s5unty gmail com>
- To: gtk-app-devel-list gnome org
- Subject: should I delete the pointer by myself, or not?
- Date: Mon, 10 Jul 2006 10:31:54 +0800
hi, all
Glib::RefPtr<Gnome::Glade::Xml> refXml; //<-- this pointer
try {
refXml = Gnome::Glade::Xml::create("somefile");
}
catch (const Gnome::Glade::XmlError& ex) {
// should i delete it ?
// how to delete it by myself?
g_print(ex.what().c_str());
return 1;
}
may i declare refXml like this:
auto_ptr<Glib::RefPtr<Gnome::Glade::Xml>> refXml ?
- Wuan
Thanks all for replies
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]