Mercurial > hg > octave-nkf
changeset 20182:7aaf756b1532
use "!", not "not"
* octave-gui.cc, audiodevinfo.cc: Avoid using "not" operator.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 19 Mar 2015 14:32:40 -0400 |
parents | 117ccb5080c1 |
children | 72ccbd36e23c f0e61a67ad9f |
files | libgui/src/octave-gui.cc libinterp/dldfcn/audiodevinfo.cc |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/octave-gui.cc +++ b/libgui/src/octave-gui.cc @@ -118,7 +118,7 @@ QTranslator gui_tr, qt_tr, qsci_tr; // Set the codec for all strings (before wizard) -#if not defined (Q_OS_WIN32) +#if ! defined (Q_OS_WIN32) QTextCodec::setCodecForCStrings (QTextCodec::codecForName ("UTF-8")); #endif
--- a/libinterp/dldfcn/audiodevinfo.cc +++ b/libinterp/dldfcn/audiodevinfo.cc @@ -282,7 +282,7 @@ return retval; } } - if (not found) + if (! found) error ("audiodevinfo: no device meeting the specified criteria found"); } else if (nargin == 3) @@ -1250,7 +1250,7 @@ PaError err; set_sample_number (0); reset_end_sample (); - if (not Pa_IsStreamStopped (get_stream ())) + if (! Pa_IsStreamStopped (get_stream ())) { err = Pa_AbortStream (get_stream ()); if (err != paNoError) @@ -1877,7 +1877,7 @@ return; PaError err; - if (not Pa_IsStreamStopped (get_stream ())) + if (! Pa_IsStreamStopped (get_stream ())) { err = Pa_AbortStream (get_stream ()); if (err != paNoError)