From 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Thu, 9 Jan 2025 22:12:06 +0100 Subject: New upstream version 2.7.0~rc8+repack --- map65/main.cpp | 86 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 43 insertions(+), 43 deletions(-) (limited to 'map65/main.cpp') diff --git a/map65/main.cpp b/map65/main.cpp index 2cc4069c..0fd3680b 100755 --- a/map65/main.cpp +++ b/map65/main.cpp @@ -1,43 +1,43 @@ -#include -#ifdef QT5 -#include -#else -#include -#endif -#include - -#include "revision_utils.hpp" -#include "mainwindow.h" - -extern "C" { - // Fortran procedures we need - void four2a_ (_Complex float *, int * nfft, int * ndim, int * isign, int * iform, int len); -} - -int main(int argc, char *argv[]) -{ - QApplication a {argc, argv}; - // Override programs executable basename as application name. - a.setApplicationName ("MAP65"); - a.setApplicationVersion ("3.0.1"); - // switch off as we share an Info.plist file with WSJT-X - a.setAttribute (Qt::AA_DontUseNativeMenuBar); - MainWindow w; - w.show (); - QObject::connect (&a, &QApplication::lastWindowClosed, &a, &QApplication::quit); - auto result = a.exec (); - - // clean up lazily initialized FFTW3 resources - { - int nfft {-1}; - int ndim {1}; - int isign {1}; - int iform {1}; - // free FFT plan resources - four2a_ (nullptr, &nfft, &ndim, &isign, &iform, 0); - } - fftwf_forget_wisdom (); - fftwf_cleanup (); - - return result; -} +#include +#ifdef QT5 +#include +#else +#include +#endif +#include + +#include "revision_utils.hpp" +#include "mainwindow.h" + +extern "C" { + // Fortran procedures we need + void four2a_ (_Complex float *, int * nfft, int * ndim, int * isign, int * iform, int len); +} + +int main(int argc, char *argv[]) +{ + QApplication a {argc, argv}; + // Override programs executable basename as application name. + a.setApplicationName ("MAP65"); + a.setApplicationVersion ("3.0.1"); + // switch off as we share an Info.plist file with WSJT-X + a.setAttribute (Qt::AA_DontUseNativeMenuBar); + MainWindow w; + w.show (); + QObject::connect (&a, &QApplication::lastWindowClosed, &a, &QApplication::quit); + auto result = a.exec (); + + // clean up lazily initialized FFTW3 resources + { + int nfft {-1}; + int ndim {1}; + int isign {1}; + int iform {1}; + // free FFT plan resources + four2a_ (nullptr, &nfft, &ndim, &isign, &iform, 0); + } + fftwf_forget_wisdom (); + fftwf_cleanup (); + + return result; +} -- cgit v1.2.3