Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-03-19 16:42:34 +0300
committerJeroen Bakker <jeroen@blender.org>2021-03-19 19:11:47 +0300
commitb9447ab053ffe660b7eb1ef8f60bf436a1cec600 (patch)
tree3e37503b6c916d8a4b4449c4a3cfdc1576ab467a /source/blender/compositor/intern
parente5ffefe606092c848e25894ccead21f0de42510f (diff)
Cleanup: Replace ptr with ref.
Diffstat (limited to 'source/blender/compositor/intern')
-rw-r--r--source/blender/compositor/intern/COM_ExecutionGroup.cc12
-rw-r--r--source/blender/compositor/intern/COM_ExecutionGroup.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/compositor/intern/COM_ExecutionGroup.cc b/source/blender/compositor/intern/COM_ExecutionGroup.cc
index 9db018e5cf3..be54d6582fb 100644
--- a/source/blender/compositor/intern/COM_ExecutionGroup.cc
+++ b/source/blender/compositor/intern/COM_ExecutionGroup.cc
@@ -70,19 +70,19 @@ CompositorPriority ExecutionGroup::getRenderPriotrity()
return this->getOutputOperation()->getRenderPriority();
}
-bool ExecutionGroup::canContainOperation(NodeOperation *operation)
+bool ExecutionGroup::can_contain(NodeOperation &operation)
{
if (!this->m_initialized) {
return true;
}
- if (operation->isReadBufferOperation()) {
+ if (operation.isReadBufferOperation()) {
return true;
}
- if (operation->isWriteBufferOperation()) {
+ if (operation.isWriteBufferOperation()) {
return false;
}
- if (operation->isSetOperation()) {
+ if (operation.isSetOperation()) {
return true;
}
@@ -92,7 +92,7 @@ bool ExecutionGroup::canContainOperation(NodeOperation *operation)
}
/* complex ops can't be added to other groups (except their own, which they initialize, see
* above) */
- if (operation->isComplex()) {
+ if (operation.isComplex()) {
return false;
}
@@ -101,7 +101,7 @@ bool ExecutionGroup::canContainOperation(NodeOperation *operation)
bool ExecutionGroup::addOperation(NodeOperation *operation)
{
- if (!canContainOperation(operation)) {
+ if (!can_contain(*operation)) {
return false;
}
diff --git a/source/blender/compositor/intern/COM_ExecutionGroup.h b/source/blender/compositor/intern/COM_ExecutionGroup.h
index 565c1538f1f..471f6ae4545 100644
--- a/source/blender/compositor/intern/COM_ExecutionGroup.h
+++ b/source/blender/compositor/intern/COM_ExecutionGroup.h
@@ -184,7 +184,7 @@ class ExecutionGroup {
* \brief check whether parameter operation can be added to the execution group
* \param operation: the operation to be added
*/
- bool canContainOperation(NodeOperation *operation);
+ bool can_contain(NodeOperation &operation);
/**
* \brief calculate the actual chunk size of this execution group.