Bug 1957689 - Appease old gcc which doesn't like the nullptr vs NonNull<Encoding*> ternary.
MANUAL PUSH: Trivial bustage fix CLOSED TREE
This commit is contained in:
@@ -491,13 +491,17 @@ Document* SVGUseElement::GetSourceDocument() const {
|
||||
}
|
||||
|
||||
nsIURI* SVGUseElement::GetSourceDocURI() const {
|
||||
auto* doc = GetSourceDocument();
|
||||
return doc ? doc->GetDocumentURI() : nullptr;
|
||||
if (auto* doc = GetSourceDocument()) {
|
||||
return doc->GetDocumentURI();
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const Encoding* SVGUseElement::GetSourceDocCharacterSet() const {
|
||||
auto* doc = GetSourceDocument();
|
||||
return doc ? doc->GetDocumentCharacterSet() : nullptr;
|
||||
if (auto* doc = GetSourceDocument()) {
|
||||
return doc->GetDocumentCharacterSet();
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static nsINode* GetClonedChild(const SVGUseElement& aUseElement) {
|
||||
|
||||
Reference in New Issue
Block a user