diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 5e5c2b64b..bea479289 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -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) diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index 1d3020395..95a37a8a8 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -510,7 +510,7 @@ public: * @return array dimensions vector */ const std::vector &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 _dimensions; + std::vector mDimensions; /** @brief fill in information, depending on Tokens given at instantiation */ void evaluate(const Library* lib);