Improve safety of class methods

This commit is contained in:
jfmcarreira committed 2021-10-24 11:25:22 +01:00
1 parent f5df1b3f9d
commit b1ca7dff0b
17 files changed
+192 -191

No files matched your search

+4 -2
View File
@@ -39,6 +39,7 @@
#include <QMainWindow>
#include <QString>
#include <QVector>
#include <optional>
#include "CommonDefs.h"
#include "VideoStreamSubWindow.h"
@@ -76,7 +77,8 @@ class MainWindow : public QMainWindow
public:
MainWindow();
bool parseArgs( int argc, char* argv[] );
void loadFile( QString fileName, CalypFileInfo* pStreamInfo = NULL );
void loadFile( CalypFileInfo pStreamInfo );
void loadFile( QString fileName, std::optional<CalypFileInfo> pStreamInfo = {} );
public Q_SLOTS:
void printMessage( const QString& msg );
@@ -117,7 +119,7 @@ private Q_SLOTS:
void dragEnterEvent( QDragEnterEvent* event );
void dropEvent( QDropEvent* event );
void update();
void updateMainWindow();
void updateZoomFactorSBox();
private: