Skip to content

Commit

Permalink
fix codecheck errors (#173)
Browse files Browse the repository at this point in the history
Signed-off-by: Ashton Larkin <[email protected]>
  • Loading branch information
adlarkin authored Nov 6, 2020
1 parent 74d4f5d commit 8b1d5b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions ogre/src/OgreRenderEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,11 @@ void OgreRenderEngine::CreateRenderSystem()
renderSys = rsList->at(c);
c++;
}
while (renderSys &&
renderSys->getName().compare("OpenGL Rendering Subsystem") != 0);
// cpplint has a false positive when extending a while call to multiple lines
// (it thinks the while loop is empty), so we must put the whole while
// statement on one line and add NOLINT at the end so that cpplint doesn't
// complain about the line being too long
while (renderSys && renderSys->getName().compare("OpenGL Rendering Subsystem") != 0); // NOLINT

if (renderSys == nullptr)
{
Expand Down
7 changes: 5 additions & 2 deletions ogre2/src/Ogre2RenderEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,11 @@ void Ogre2RenderEngine::CreateRenderSystem()
renderSys = rsList->at(c);
c++;
}
while (renderSys &&
renderSys->getName().compare("OpenGL 3+ Rendering Subsystem") != 0);
// cpplint has a false positive when extending a while call to multiple lines
// (it thinks the while loop is empty), so we must put the whole while
// statement on one line and add NOLINT at the end so that cpplint doesn't
// complain about the line being too long
while (renderSys && renderSys->getName().compare("OpenGL 3+ Rendering Subsystem") != 0); // NOLINT

if (renderSys == nullptr)
{
Expand Down

0 comments on commit 8b1d5b5

Please sign in to comment.