Fix a bug about Read() & Write() method of UnitMap 58/316458/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 22 Aug 2024 01:28:25 +0000 (10:28 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 22 Aug 2024 01:28:25 +0000 (10:28 +0900)
If there are two interfaces, the tidlc does not generate Read() & Write()
method of the CallbackBase of the second interface.
This patch fixes it.

Change-Id: I6ed21f5c75fdaa374eff92aac46701642a8564df
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
idlc/gen/version2/cpp_generator_base.cc

index 30d9427f4b44ba7545011a4bd87f60d614e8867b..f631a38602f9dd2c6458a0e0141e203db04ad560 100644 (file)
@@ -640,7 +640,7 @@ void CppGeneratorBase::InitUnitTypes(bool use_file) {
       }
 
       for (const auto& decl : iface.GetDeclarations()) {
-        AddUnitType("delegate",
+        AddUnitType(iface.GetID() + "::CallbackBase",
                     BaseType(iface.GetID() + "::CallbackBase", "", true),
                     iface.GetID());
         if (decl->GetMethodType() == Declaration::MethodType::DELEGATE) {