Cleanup: Replace ptr with ref.

This commit is contained in:
Jeroen Bakker
2021-03-19 14:42:34 +01:00
parent e5ffefe606
commit b9447ab053
2 changed files with 7 additions and 7 deletions

View File

@@ -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;
}

View File

@@ -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.