Use ShareFile of Port class 08/240408/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 6 Aug 2020 06:09:33 +0000 (15:09 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 6 Aug 2020 06:09:33 +0000 (15:09 +0900)
Change-Id: Iaa4d3500fa95ba59bde46310186fb79ed5e2de0d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
idlc/gen/cs_proxy_gen.cc

index 9bcece4c4f459fc86af3d621cb94842ac15306aa..a45874a9d98214f769e61484fa8cd126a6de4861 100644 (file)
@@ -132,14 +132,7 @@ void CsProxyGen::GenInvocation(std::ofstream& stream, const Declaration& decl) {
             pt.GetBaseType().GetMetaType()->ToString() == "file")) {
           st += GenTemplateString(CB_SHARE_FILE, [&]()->std::string {
             std::string str = "";
-            if (pt.GetBaseType().GetMetaType() != nullptr) {
-              str += Tab(6) + "foreach (var i in myFile)" + NLine(1);
-              str += Tab(6) + "{" + NLine(1);
-              str += Tab(6) + "   p.ShareFile(Port, i);" + NLine(1);
-              str += Tab(6) + "}";
-            } else {
-              str += Tab(6) + "p.ShareFile(Port, myFile);";
-            }
+            str += Tab(6) + "Port.ShareFile(myFile);";
             return str;
           });
         }