From: Junghoon Park Date: Wed, 25 Sep 2019 05:24:08 +0000 (+0900) Subject: Fix missing 'const' X-Git-Tag: submit/tizen_5.5/20200113.004036~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f95a7968c7ba60433fff452cd4864bfbf01cb53;p=platform%2Fcore%2Fappfw%2Ftidl.git Fix missing 'const' Change-Id: I1ad279086724e38f082486112b44e2bfeb54feb8 Signed-off-by: Junghoon Park --- diff --git a/idlc/cpp_gen/cpp_gen_base.cc b/idlc/cpp_gen/cpp_gen_base.cc index 5a081303..d18fbd15 100644 --- a/idlc/cpp_gen/cpp_gen_base.cc +++ b/idlc/cpp_gen/cpp_gen_base.cc @@ -361,7 +361,7 @@ void CppGeneratorBase::GenListSerializer(std::ofstream& stream, stream << Tab(1) << "rpc_port_parcel_write_array_count(h, c.size());" << NLine(1); - stream << Tab(1) << "for (auto& i : c) "; + stream << Tab(1) << "for (const auto& i : c) "; GenBrace(stream, TAB_SIZE, [&]() { auto& mt = *type.GetMetaType(); stream << AddIndent(TAB_SIZE * 2, ConvertTypeToSerializer(mt, "i", "h"));