Code style fixes

This commit is contained in:
Dale Glass 2020-01-17 00:41:16 +01:00
parent 367c5f39df
commit bb51a000fb

View file

@ -138,12 +138,12 @@ public:
bool operator==(const DepthTest& right) const { bool operator==(const DepthTest& right) const {
return return
writeMask == right.writeMask && writeMask == right.writeMask &&
enabled == right.enabled && enabled == right.enabled &&
function == right.function; function == right.function;
} }
bool operator!=(const DepthTest& right) const { bool operator!=(const DepthTest& right) const {
return !(right == *this); return !(*this == right);
} }
operator QString() const { operator QString() const {
@ -179,12 +179,12 @@ public:
bool operator==(const StencilTest& right) const { bool operator==(const StencilTest& right) const {
return return
function == right.function && function == right.function &&
failOp == right.failOp && failOp == right.failOp &&
depthFailOp == right.depthFailOp && depthFailOp == right.depthFailOp &&
passOp == right.passOp && passOp == right.passOp &&
reference == right.reference && reference == right.reference &&
readMask == right.readMask; readMask == right.readMask;
} }
@ -209,12 +209,12 @@ public:
bool operator==(const StencilActivation& right) const { bool operator==(const StencilActivation& right) const {
return return
frontWriteMask == right.frontWriteMask && frontWriteMask == right.frontWriteMask &&
backWriteMask == right.backWriteMask && backWriteMask == right.backWriteMask &&
enabled == right.enabled; enabled == right.enabled;
} }
bool operator!=(const StencilActivation& right) const { bool operator!=(const StencilActivation& right) const {
return !(right == *this); return !(*this == right);
} }
}; };
@ -256,18 +256,18 @@ public:
bool operator==(const BlendFunction& right) const { bool operator==(const BlendFunction& right) const {
return return
enabled == right.enabled && enabled == right.enabled &&
sourceColor == right.sourceColor && sourceColor == right.sourceColor &&
sourceAlpha == right.sourceAlpha && sourceAlpha == right.sourceAlpha &&
destColor == right.destColor && destColor == right.destColor &&
destAlpha == right.destAlpha && destAlpha == right.destAlpha &&
opColor == right.opColor && opColor == right.opColor &&
opAlpha == right.opAlpha; opAlpha == right.opAlpha;
} }
bool operator!=(const BlendFunction& right) const { bool operator!=(const BlendFunction& right) const {
return !(right == *this); return !(*this == right);
} }
}; };
@ -285,17 +285,17 @@ public:
bool operator==(const Flags& right) const { bool operator==(const Flags& right) const {
return return
frontFaceClockwise == right.frontFaceClockwise && frontFaceClockwise == right.frontFaceClockwise &&
depthClampEnable == right.depthClampEnable && depthClampEnable == right.depthClampEnable &&
scissorEnable == right.scissorEnable && scissorEnable == right.scissorEnable &&
multisampleEnable == right.multisampleEnable && multisampleEnable == right.multisampleEnable &&
antialisedLineEnable == right.antialisedLineEnable && antialisedLineEnable == right.antialisedLineEnable &&
alphaToCoverageEnable == right.alphaToCoverageEnable; alphaToCoverageEnable == right.alphaToCoverageEnable;
} }
bool operator!=(const Flags& right) const { bool operator!=(const Flags& right) const {
return !(right == *this); return !(*this == right);
} }
}; };