You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FunctionData::FunctionData(Program& program)
: program(program),
globalData(program.getScope().getLocalData())
{
for (const auto it : globalData)
{
Datum& datum = *it;
if (!datum.getCompileTimeValue())
{
globalVariables.push_back(&datum);
}
}
for (const auto script : program.scripts)
{
const vector<Datum*> data = script->getScope().getLocalData();
globalVariables.insert(globalVariables.end(),
data.begin(), data.end());
}
for (const auto it : program.namespaces)
{
const auto & data = it->getScope().getLocalData();
globalVariables.insert(globalVariables.end(),
data.begin(), data.end());
}
}
DataStructs.cpp could use some range-based for loops
The text was updated successfully, but these errors were encountered: