Rename _dimensions to mDimensions

This commit is contained in:
Daniel Marjamäki 2018-06-16 20:23:58 +02:00
parent 31f137f24d
commit fc6f17ed87
2 changed files with 7 additions and 7 deletions

View File

@ -2465,7 +2465,7 @@ bool Variable::arrayDimensions(const Library* lib)
}
}
assert((dimension_.start == nullptr) == (dimension_.end == nullptr));
_dimensions.push_back(dimension_);
mDimensions.push_back(dimension_);
return true;
}
}
@ -2496,7 +2496,7 @@ bool Variable::arrayDimensions(const Library* lib)
}
}
assert((dimension_.start == nullptr) == (dimension_.end == nullptr));
_dimensions.push_back(dimension_);
mDimensions.push_back(dimension_);
dim = dim->link()->next();
arr = true;
}
@ -2664,7 +2664,7 @@ void SymbolDatabase::printVariable(const Variable *var, const char *indent) cons
std::cout << indent << "_scope: " << scopeToString(var->scope(), mTokenizer) << std::endl;
std::cout << indent << "_dimensions:";
std::cout << indent << "mDimensions:";
for (std::size_t i = 0; i < var->dimensions().size(); i++) {
std::cout << " " << var->dimension(i);
if (!var->dimensions()[i].known)

View File

@ -510,7 +510,7 @@ public:
* @return array dimensions vector
*/
const std::vector<Dimension> &dimensions() const {
return _dimensions;
return mDimensions;
}
/**
@ -518,7 +518,7 @@ public:
* @return length of dimension
*/
MathLib::bigint dimension(std::size_t index_) const {
return _dimensions[index_].num;
return mDimensions[index_].num;
}
/**
@ -526,7 +526,7 @@ public:
* @return length of dimension known
*/
bool dimensionKnown(std::size_t index_) const {
return _dimensions[index_].known;
return mDimensions[index_].known;
}
/**
@ -643,7 +643,7 @@ private:
const Scope *_scope;
/** @brief array dimensions */
std::vector<Dimension> _dimensions;
std::vector<Dimension> mDimensions;
/** @brief fill in information, depending on Tokens given at instantiation */
void evaluate(const Library* lib);