diff options
author | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2016-01-10 20:13:25 +0100 |
---|---|---|
committer | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2016-01-14 11:39:35 +0000 |
commit | 0636c14610ad84014f7985017228b248166d17be (patch) | |
tree | 9fd3948b1a0cab2f98f74eaaeb2fdcbbc1bc1d16 /src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp | |
parent | e841da76628dabdc86e84732cb2b191784166532 (diff) |
Remove needless use of the ternary operator
Fixes: "** CID 156593: Control flow issues (DEADCODE)".
Child can not be null do to while (child) { ...
Change-Id: I46a4f23f24bf7e6b71e72b177249587eea57d5ce
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp b/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp index 9ed5411576..27e3ddc76f 100644 --- a/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp +++ b/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp @@ -1055,7 +1055,7 @@ void Renderer::nodeWasRemoved(Node *node) while (child) { // Get the next child now before we proceed - nextChild = child ? child->nextSibling : 0; + nextChild = child->nextSibling; // Remove (and delete) child nodeWasRemoved(child); |