registerDiagnosticHandler() should take reference

Bug #867163 reported by Paul J. Lucas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Matthias Brantner

Bug Description

The XmlDataManager::registerDiagnosticHandler() function currently takes a DiagnoticHandler* as an argument. The comment says, "The caller retains ownership over the DiagnosticHandler passed as a parameter."

If NULL is not an acceptable value (the comment should say so explicitly) and since the caller retains ownership, then this argument should really be a DiagnoticHandler&. If NULL is an acceptable value, then the comment should say so explicitly (and also say what NULL means).

This bug has been marked as 2.0 since this is a potential API change.

Tags: cpp-api
Chris Hillery (ceejatec)
tags: removed: v2.0
Chris Hillery (ceejatec)
tags: added: cpp-api
removed: cplusplus-api
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.