提交 d09564b7 编写于 作者: P Peng Li

change std::vector<int> to const reference

上级 8bd47522
...@@ -66,6 +66,7 @@ struct InputDef { ...@@ -66,6 +66,7 @@ struct InputDef {
bool isStatic; bool isStatic;
std::vector<int> labelInitValue; std::vector<int> labelInitValue;
std::vector<int> labelSeqStartPositions; std::vector<int> labelSeqStartPositions;
InputDef(InputType type, string nameIn, size_t dimIn, size_t sizeIn) { InputDef(InputType type, string nameIn, size_t dimIn, size_t sizeIn) {
inputType = type; inputType = type;
name = nameIn; name = nameIn;
...@@ -79,8 +80,8 @@ struct InputDef { ...@@ -79,8 +80,8 @@ struct InputDef {
string nameIn, string nameIn,
size_t dimIn, size_t dimIn,
size_t sizeIn, size_t sizeIn,
std::vector<int> labelInitValue, const std::vector<int>& labelInitValue,
std::vector<int> labelSeqStartPositions) const std::vector<int>& labelSeqStartPositions)
: labelInitValue(labelInitValue), : labelInitValue(labelInitValue),
labelSeqStartPositions(labelSeqStartPositions) { labelSeqStartPositions(labelSeqStartPositions) {
inputType = type; inputType = type;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册