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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user