diff --git a/map65/CMakeLists.txt b/map65/CMakeLists.txt index f5fd47e03..4c8107eee 100644 --- a/map65/CMakeLists.txt +++ b/map65/CMakeLists.txt @@ -27,11 +27,6 @@ if (WIN32) set (map65_CXXSRCS ${map65_CXXSRCS} killbyname.cpp) endif (WIN32) -set (map65_CSRCS - paInputDevice.c - pa_get_device_info.c -) - set (map65_UISRCS about.ui astro.ui diff --git a/map65/getfile.cpp b/map65/getfile.cpp index 0797ad7bf..39e7257aa 100644 --- a/map65/getfile.cpp +++ b/map65/getfile.cpp @@ -22,8 +22,9 @@ void getfile(QString fname, bool xpol, int dbDgrd) FILE* fp=fopen(name,"rb"); if(fp != NULL) { - (void)fread(&datcom_.fcenter,sizeof(datcom_.fcenter),1,fp); - (void)fread(id,2,npts,fp); + auto n = fread(&datcom_.fcenter,sizeof(datcom_.fcenter),1,fp); + n = fread(id,2,npts,fp); + Q_UNUSED (n); int j=0; if(dbDgrd<0) { diff --git a/map65/plotter.cpp b/map65/plotter.cpp index 9527a2457..245264dd3 100644 --- a/map65/plotter.cpp +++ b/map65/plotter.cpp @@ -273,7 +273,7 @@ void CPlotter::UTCstr() ihr=imin/60; imin=imin % 60; } - sprintf(m_sutc,"%2.2d:%2.2d",ihr,imin); + m_sutc = QString {"%1:%2"}.arg (ihr, 2).arg (imin, 2); } void CPlotter::DrawOverlay() //DrawOverlay() diff --git a/map65/plotter.h b/map65/plotter.h index 7169236c9..2d372c6c6 100644 --- a/map65/plotter.h +++ b/map65/plotter.h @@ -115,7 +115,7 @@ private: qint32 m_FreqUnits; qint32 m_hdivs; bool m_dataFromDisk; - char m_sutc[5]; + QString m_sutc; qint32 m_line; qint32 m_hist1[256]; qint32 m_hist2[256];