projects
/
platform
/
core
/
appfw
/
tidl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31ef19d
)
Fix missing 'const'
author
Junghoon Park
<jh9216.park@samsung.com>
Wed, 25 Sep 2019 05:24:08 +0000
(14:24 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Mon, 13 Jan 2020 00:27:47 +0000
(09:27 +0900)
Change-Id: I1ad279086724e38f082486112b44e2bfeb54feb8
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
idlc/cpp_gen/cpp_gen_base.cc
patch
|
blob
|
history
diff --git
a/idlc/cpp_gen/cpp_gen_base.cc
b/idlc/cpp_gen/cpp_gen_base.cc
index 5a08130314f98cfdc1fa275d082d0baa6bfbfe90..d18fbd15ea13393a284c8258f438776423268ad9 100644
(file)
--- 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"));