astyle formatting
[ci skip]
This commit is contained in:
parent
d300d1f61b
commit
f9a5a114bb
@ -1354,7 +1354,8 @@ static std::size_t estimateSize(const Type* type, const Settings* settings, cons
|
||||
|
||||
static bool canBeConst(const Variable *var)
|
||||
{
|
||||
{ // check initializer list. If variable is moved from it can't be const.
|
||||
{
|
||||
// check initializer list. If variable is moved from it can't be const.
|
||||
const Function* func_scope = var->scope()->function;
|
||||
if (func_scope->type == Function::Type::eConstructor) {
|
||||
//could be initialized in initializer list
|
||||
|
Loading…
x
Reference in New Issue
Block a user