summaryrefslogtreecommitdiffstats
path: root/src/replaygain.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-13 18:42:43 +0900
committerMichele Calgaro <[email protected]>2023-11-14 20:57:09 +0900
commit802b45c5566c3916e46250060ecef332f055fc26 (patch)
tree1bd49a5d76709e620040d6474dff725d1f8fbbc2 /src/replaygain.cpp
parent300613eef3cbb63f040fcbced2e03570791d16f3 (diff)
downloadsoundkonverter-802b45c5566c3916e46250060ecef332f055fc26.tar.gz
soundkonverter-802b45c5566c3916e46250060ecef332f055fc26.zip
cmake conversion
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/replaygain.cpp')
-rw-r--r--src/replaygain.cpp14
1 files changed, 8 insertions, 6 deletions
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<float> ReplayGain::getReplayGain( TQString file ) {} // obsolete
+
+#include "replaygain.moc"