[apps/code] Rename ScriptNode::Types to With/WithoutParentheses

Because some functions already have the parentheses in their name, so
their type would have been Variable but it is clearer to give it the
type WithoutParentheses. this is the case for nodes created from toolbox
nodes.
This commit is contained in:
Léa Saviot
2020-04-15 15:30:12 +02:00
committed by Émilie Feral
parent 74b786f875
commit bbeb17c3a9
3 changed files with 128 additions and 128 deletions

View File

@@ -9,10 +9,10 @@ namespace Code {
class ScriptNode {
public:
enum class Type : bool {
Function,
Variable
WithoutParentheses,
WithParentheses
};
ScriptNode(Type type = Type::Variable, const char * name = nullptr, int nameLength = -1, const char * nodeSourceName = nullptr, const char * description = nullptr) :
ScriptNode(Type type = Type::WithoutParentheses, const char * name = nullptr, int nameLength = -1, const char * nodeSourceName = nullptr, const char * description = nullptr) :
m_type(type),
m_name(name),
m_nodeSourceName(nodeSourceName),