Procházet zdrojové kódy

LibIDL: Fix bug where Type::is_json doesn't look at parent interface

Bastiaan van der Plaat před 1 rokem
rodič
revize
2e1d6f624d
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Userland/Libraries/LibIDL/Types.cpp

+ 2 - 2
Userland/Libraries/LibIDL/Types.cpp

@@ -277,10 +277,10 @@ bool Type::is_json(Interface const& interface) const
         if (to_json_iterator != current_interface_for_to_json->functions.end())
         if (to_json_iterator != current_interface_for_to_json->functions.end())
             return true;
             return true;
 
 
-        if (interface.parent_name.is_empty())
+        if (current_interface_for_to_json->parent_name.is_empty())
             break;
             break;
 
 
-        auto imported_interface_iterator = interface.imported_modules.find_if([&current_interface_for_to_json](IDL::Interface const& imported_interface) {
+        auto imported_interface_iterator = current_interface_for_to_json->imported_modules.find_if([&current_interface_for_to_json](IDL::Interface const& imported_interface) {
             return imported_interface.name == current_interface_for_to_json->parent_name;
             return imported_interface.name == current_interface_for_to_json->parent_name;
         });
         });