This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 06/14] Remove cleanup_iconv
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
Simon> From what I understand about C++ constructors and destructors, the
Simon> check for -1 is unnecessary. The destructor will only be called if
Simon> the constructor ran to completion. If the constructor ran to
Simon> completion (didn't throw), m_desc won't be -1.
Yeah, that was just copy-paste from the other class, which may be wrong.
I changed this.
Tom