Fix build bustage on Solaris Workshop compiler.

This commit is contained in:
waterson%netscape.com 2000-04-05 05:18:42 +00:00
Родитель f835a34327
Коммит 79215cf024
2 изменённых файлов: 8 добавлений и 2 удалений

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

@ -114,8 +114,11 @@ static NS_DEFINE_CID(kXULSortServiceCID, NS_XULSORTSERVICE_CID);
#ifdef DEBUG
// XXX the aValue argument is really "const", but since it's probably
// an nsISupports, and QueryInterface(), AddRef() and Release() are
// not "const" methods, we need to let it be mutable.
static nsISupports*
value_to_isupports(const nsIID& aIID, const Value& aValue)
value_to_isupports(const nsIID& aIID, /*const*/ Value& aValue)
{
nsresult rv;
nsISupports* isupports = NS_STATIC_CAST(nsISupports*, aValue);

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

@ -114,8 +114,11 @@ static NS_DEFINE_CID(kXULSortServiceCID, NS_XULSORTSERVICE_CID);
#ifdef DEBUG
// XXX the aValue argument is really "const", but since it's probably
// an nsISupports, and QueryInterface(), AddRef() and Release() are
// not "const" methods, we need to let it be mutable.
static nsISupports*
value_to_isupports(const nsIID& aIID, const Value& aValue)
value_to_isupports(const nsIID& aIID, /*const*/ Value& aValue)
{
nsresult rv;
nsISupports* isupports = NS_STATIC_CAST(nsISupports*, aValue);