Minor static-checking fixup: give a useful location for the "frame inherits from nsIFrame and nsISupports" warning, NPODB

This commit is contained in:
Benjamin Smedberg 2009-01-13 11:32:25 -05:00
Родитель 593163a61d
Коммит 2540270fa1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -23,7 +23,7 @@ function process_type(t)
if ((t.kind == "class" || t.kind == "struct")) {
if (!t.isIncomplete && inheritsFrom(t, 'nsIFrame')) {
if (inheritsFrom(t, 'nsISupports'))
warning("nsIFrame derivative %s inherits from nsISupports but is not refcounted.".format(t.name));
warning("nsIFrame derivative %s inherits from nsISupports but is not refcounted.".format(t.name), t.loc);
let nonFrameBases = [];