pointer_null.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. diff -Naur a/gui/crxdisplay.cpp b/gui/crxdisplay.cpp
  2. --- a/gui/crxdisplay.cpp 2017-02-07 15:10:47.000000000 +0000
  3. +++ b/gui/crxdisplay.cpp 2022-02-13 12:27:01.631479349 +0000
  4. @@ -78,7 +78,7 @@
  5. Sound = new WaveInput ( -1 );
  6. else
  7. Sound = new CSound ( settings.serial );
  8. - if ( Sound <= NULL )
  9. + if ( Sound <= (void *) NULL )
  10. return false;
  11. connect ( Sound, SIGNAL ( samplesAvailable() ), this, SLOT ( process_rxdata() ) );
  12. diff -Naur a/gui/linpsk.cpp b/gui/linpsk.cpp
  13. --- a/gui/linpsk.cpp 2017-02-07 15:10:47.000000000 +0000
  14. +++ b/gui/linpsk.cpp 2022-02-13 12:28:37.937992591 +0000
  15. @@ -410,7 +410,7 @@
  16. Modulator = new BpskModulator ( 11025, Frequency, TxBuffer );
  17. break; */
  18. }
  19. - if ( Sound <= NULL ) // Only create Sound Device once for output
  20. + if ( Sound <= (void *) NULL ) // Only create Sound Device once for output
  21. {
  22. if ( settings.DemoMode )
  23. {
  24. @@ -421,7 +421,7 @@
  25. Sound = new CSound ( settings.serial );
  26. connect ( Sound, SIGNAL ( samplesAvailable() ), this, SLOT ( process_txdata() ) );
  27. }
  28. - if ( Sound <= NULL )
  29. + if ( Sound <= (void *) NULL )
  30. {
  31. QMessageBox::critical ( 0, " Programm Error! LinPsk", "Could not create Sound Device for Output" );
  32. TxDisplay->TxFunctions->setStatus ( ON );
  33. diff -Naur a/gui/modemenu.cpp b/gui/modemenu.cpp
  34. --- a/gui/modemenu.cpp 2017-02-07 15:10:47.000000000 +0000
  35. +++ b/gui/modemenu.cpp 2022-02-13 12:45:09.832995118 +0000
  36. @@ -18,7 +18,7 @@
  37. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
  38. ***************************************************************************/
  39. -
  40. +#include <QButtonGroup>
  41. #include "modemenu.h"
  42. #include "parameter.h"
  43. #include "crxchannel.h"