Skip to content

Commit

Permalink
used shorthand if
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr committed Oct 3, 2023
1 parent ebc7854 commit e186ce0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libshvvisu/src/timeline/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,7 @@ QStringList Graph::channelPaths()

void Graph::hideFlatChannels()
{
QStringList matching_paths = channelPaths();

if (m_channelFilter.isValid()) {
matching_paths = m_channelFilter.matchingPaths();
}
QStringList matching_paths = (m_channelFilter.isValid()) ? m_channelFilter.matchingPaths() : channelPaths();

for (qsizetype i = 0; i < m_channels.count(); ++i) {
GraphChannel *ch = m_channels[i];
Expand Down

0 comments on commit e186ce0

Please sign in to comment.