Bug 122 - Object::QueryInterface has two arguments which are redundant
Object::QueryInterface has two arguments which are redundant
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
pre-release
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-29 05:29 UTC by Mathieu Lacage
Modified: 2008-07-01 13:32 UTC (History)
1 user (show)

See Also:


Attachments
patch for bug 122 (41.18 KB, patch)
2007-12-29 05:31 UTC, Mathieu Lacage
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Lacage 2007-12-29 05:29:52 UTC
The attached patchset adds a new Object::QueryInterface method which takes only a single argument, a template type argument and uses this simple method everywhere possible in the current codebase.
Comment 1 Mathieu Lacage 2007-12-29 05:31:00 UTC
Created attachment 100 [details]
patch for bug 122
Comment 2 Mathieu Lacage 2007-12-29 05:31:56 UTC
There are still a few very specific cases where the old two-argument QueryInterface method was still needed so, I left them in.
Comment 3 Gustavo J. A. M. Carneiro 2007-12-29 16:35:55 UTC
As long as the QI version accepting the iid string is retained, for the sake of python bindings, sounds good to me.
Comment 4 Tom Henderson 2008-02-02 18:56:48 UTC
ns-3-object changed QueryInterface to GetObject