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

change std::vector<int> to const reference

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