change std::vector<int> to const reference

avx_docs
Peng Li 9 years ago
parent 8bd4752227
commit d09564b73f

@ -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 {
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;

Loading…
Cancel
Save