Bug 38185. Fix ports build bustage. a=brade

This commit is contained in:
waterson%netscape.com 2000-05-04 19:57:31 +00:00
Родитель 51c960c946
Коммит 8743489395
2 изменённых файлов: 6 добавлений и 2 удалений

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

@ -4669,7 +4669,9 @@ nsXULTemplateBuilder::SubstituteTextForValue(const Value& aValue, nsString& aRes
switch (aValue.GetType()) {
case Value::eISupports:
{
nsISupports* isupports = NS_STATIC_CAST(nsISupports*, aValue); // no addref
// Need to const_cast<> aValue because QI() and Release()
// are not `const'
nsISupports* isupports = NS_STATIC_CAST(nsISupports*, NS_CONST_CAST(Value&, aValue)); // no addref
nsCOMPtr<nsIRDFNode> node = do_QueryInterface(isupports);
if (node) {

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

@ -4669,7 +4669,9 @@ nsXULTemplateBuilder::SubstituteTextForValue(const Value& aValue, nsString& aRes
switch (aValue.GetType()) {
case Value::eISupports:
{
nsISupports* isupports = NS_STATIC_CAST(nsISupports*, aValue); // no addref
// Need to const_cast<> aValue because QI() and Release()
// are not `const'
nsISupports* isupports = NS_STATIC_CAST(nsISupports*, NS_CONST_CAST(Value&, aValue)); // no addref
nsCOMPtr<nsIRDFNode> node = do_QueryInterface(isupports);
if (node) {