Make some things that return never-null pointers return references instead.
[WebKit-https.git] / Source / WebCore / html / HTMLSelectElement.cpp
index 5917f0f..9bd7eab 100644 (file)
@@ -295,7 +295,7 @@ void HTMLSelectElement::parseAttribute(const QualifiedName& name, const AtomicSt
         String attrSize = String::number(size);
         if (attrSize != value) {
             // FIXME: This is horribly factored.
-            if (Attribute* sizeAttribute = ensureUniqueElementData()->findAttributeByName(sizeAttr))
+            if (Attribute* sizeAttribute = ensureUniqueElementData().findAttributeByName(sizeAttr))
                 sizeAttribute->setValue(attrSize);
         }
         size = max(size, 1);