Merge to XFA: Make conversion between CPDF_Action and its dictionary explicit.
[pdfium.git] / core / src / fpdfdoc / doc_bookmark.cpp
index e7b383e..a3a1943 100644 (file)
@@ -86,7 +86,7 @@ CPDF_Dest CPDF_Bookmark::GetDest(CPDF_Document* pDocument) const
 CPDF_Action CPDF_Bookmark::GetAction() const
 {
     if (!m_pDict) {
-        return NULL;
+        return CPDF_Action();
     }
-    return m_pDict->GetDict("A");
+    return CPDF_Action(m_pDict->GetDict("A"));
 }