[ATK] Use a smart pointer for AccessibilityObject wrapper and remove GTK specific...
[WebKit-https.git] / Source / WebCore / accessibility / atk / WebKitAccessibleInterfaceHypertext.cpp
index db60218..f12e3df 100644 (file)
@@ -49,7 +49,7 @@ static AtkHyperlink* webkitAccessibleHypertextGetLink(AtkHypertext* hypertext, g
     for (const auto& child : children) {
         AccessibilityObject* coreChild = child.get();
         if (!coreChild->accessibilityIsIgnored()) {
-            AtkObject* axObject = coreChild->wrapper();
+            auto* axObject = coreChild->wrapper();
             if (!axObject || !ATK_IS_HYPERLINK_IMPL(axObject))
                 continue;
 
@@ -74,7 +74,7 @@ static gint webkitAccessibleHypertextGetNLinks(AtkHypertext* hypertext)
     for (const auto& child : children) {
         AccessibilityObject* coreChild = child.get();
         if (!coreChild->accessibilityIsIgnored()) {
-            AtkObject* axObject = coreChild->wrapper();
+            auto* axObject = coreChild->wrapper();
             if (axObject && ATK_IS_HYPERLINK_IMPL(axObject))
                 linksFound++;
         }