[beast: 28/29] TOOLS: fix Bse::error checks
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 28/29] TOOLS: fix Bse::error checks
- Date: Mon, 21 Mar 2016 15:14:35 +0000 (UTC)
commit b1d4e69d53c84c39fc1f77a34f6f58e35f51c25e
Author: Tim Janik <timj gnu org>
Date: Mon Mar 7 01:56:48 2016 +0100
TOOLS: fix Bse::error checks
Signed-off-by: Tim Janik <timj gnu org>
tools/bsewavetool.cc | 4 ++--
tools/bwtwave.cc | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tools/bsewavetool.cc b/tools/bsewavetool.cc
index da6fe7a..d1bd76d 100644
--- a/tools/bsewavetool.cc
+++ b/tools/bsewavetool.cc
@@ -162,7 +162,7 @@ main (int argc,
bse_wave_file_info_unref (winfo);
}
}
- if (!wave && !error)
+ if (!wave && error == 0)
error = Bse::Error::IO; /* unknown */
if (error != 0)
{
@@ -2549,7 +2549,7 @@ public:
GslDataHandle *fir_handle = create_fir_handle (dhandle);
Bse::Error error = print_effective_stopband_start (fir_handle);
- if (!error)
+ if (error == 0)
error = chunk->change_dhandle (fir_handle, 0, 0);
if (error != 0)
diff --git a/tools/bwtwave.cc b/tools/bwtwave.cc
index 50d6311..1fb4b84 100644
--- a/tools/bwtwave.cc
+++ b/tools/bwtwave.cc
@@ -57,7 +57,7 @@ WaveChunk::change_dhandle (GslDataHandle *xhandle,
}
Bse::Error error = gsl_data_handle_open (xhandle);
gsl_data_handle_unref (xhandle);
- if (!error)
+ if (error == 0)
{
if (dhandle)
gsl_data_handle_close (dhandle);
@@ -123,7 +123,7 @@ Wave::add_chunk (GslDataHandle *dhandle,
gsl_data_handle_ref (dhandle);
Bse::Error error = gsl_data_handle_open (dhandle);
- if (!error)
+ if (error == 0)
{
WaveChunk wc;
wc.dhandle = dhandle;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]