Bug 38185. Fix ports build bustage. a=brade

git-svn-id: svn://10.0.0.236/trunk@68247 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
2000-05-04 19:57:31 +00:00
parent 5be17635a2
commit de05c39577
2 changed files with 6 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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) {