File indexing completed on 2024-12-22 04:15:35
0001 /* 0002 * This file is part of Krita 0003 * 0004 * SPDX-FileCopyrightText: 2020 L. E. Segovia <amy@amyspark.me> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #include "SeExprExpressionContext.h" 0010 0011 SeExprExpressionContext::SeExprExpressionContext(const QString &expr) 0012 : KSeExpr::Expression(expr.toStdString()) 0013 , m_vars(VariableMap()) 0014 { 0015 } 0016 0017 KSeExpr::ExprVarRef *SeExprExpressionContext::resolveVar(const std::string &name) const 0018 { 0019 return m_vars.value(name, nullptr); 0020 }