Skip to content

Commit

Permalink
tidy: Remove redundant calls to a smart pointer's get method.
Browse files Browse the repository at this point in the history
Clang-tidy pointed out where functions explicitly call the smart
pointer get() method where an implicit call can happen.  Changes made
by the clang-tidy program.

These problems were pointed out by clang-tidy's "redundant smart
pointer get" check.

https://clang.llvm.org/extra/clang-tidy/checks/readability-redundant-smartptr-get.html
  • Loading branch information
linuxdude42 committed Mar 20, 2019
1 parent 28cf98e commit cb826e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythplugins/mythmusic/mythmusic/cdrip.cpp
Expand Up @@ -339,7 +339,7 @@ void CDRipperThread::run(void)
}
}

if (!encoder.get())
if (!encoder)
{
// This should never happen.
QApplication::postEvent(
Expand Down

0 comments on commit cb826e5

Please sign in to comment.