From 802b45c5566c3916e46250060ecef332f055fc26 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 13 Nov 2023 18:42:43 +0900 Subject: cmake conversion Signed-off-by: Michele Calgaro --- src/replaygain.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/replaygain.cpp') diff --git a/src/replaygain.cpp b/src/replaygain.cpp index d93d57e..a72bce0 100644 --- a/src/replaygain.cpp +++ b/src/replaygain.cpp @@ -33,18 +33,18 @@ bool ReplayGain::apply( TQStringList files, const TQString& format, TDEProcess* } param = TQString(); - if( plugin->replaygain.param ) param.append( " " + plugin->replaygain.param ); + if( !plugin->replaygain.param.isEmpty() ) param.append( " " + plugin->replaygain.param ); if( mode & remove ) { - if( plugin->replaygain.remove ) param.append( " " + plugin->replaygain.remove ); + if( !plugin->replaygain.remove.isEmpty() ) param.append( " " + plugin->replaygain.remove ); } else { - if( (mode & calc_track) && plugin->replaygain.track ) param.append( " " + plugin->replaygain.track ); - if( (mode & calc_album) && plugin->replaygain.album ) param.append( " " + plugin->replaygain.album ); + if( (mode & calc_track) && !plugin->replaygain.track.isEmpty() ) param.append( " " + plugin->replaygain.track ); + if( (mode & calc_album) && !plugin->replaygain.album.isEmpty() ) param.append( " " + plugin->replaygain.album ); if( mode & force ) { - if( plugin->replaygain.force ) param.append( " " + plugin->replaygain.force ); + if( !plugin->replaygain.force.isEmpty() ) param.append( " " + plugin->replaygain.force ); } else { - if( plugin->replaygain.skip ) param.append( " " + plugin->replaygain.skip ); + if( !plugin->replaygain.skip.isEmpty() ) param.append( " " + plugin->replaygain.skip ); } } @@ -94,3 +94,5 @@ bool ReplayGain::apply( TQStringList files, const TQString& format, TDEProcess* } //TQValueList ReplayGain::getReplayGain( TQString file ) {} // obsolete + +#include "replaygain.moc" -- cgit v1.2.1