Bug 778104 - NS_IMPL_STRING_ATTR incorrectly uses bool as nsresult; r=bz

This commit is contained in:
Aryeh Gregor 2012-07-30 16:48:02 +03:00
Родитель bc9c83fb09
Коммит b044181b5e
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1051,8 +1051,8 @@ _elementName::Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const \
NS_IMETHODIMP \
_class::Get##_method(nsAString& aValue) \
{ \
/* XXX Invalid cast of bool to nsresult (bug 778104) */ \
return (nsresult)GetAttr(kNameSpaceID_None, nsGkAtoms::_atom, aValue); \
GetAttr(kNameSpaceID_None, nsGkAtoms::_atom, aValue); \
return NS_OK; \
} \
NS_IMETHODIMP \
_class::Set##_method(const nsAString& aValue) \