Use const references where possible

Good practice and a minor performance improvement.
This commit is contained in:
Luís Pereira
2020-10-23 12:21:53 +01:00
committed by Chih-Hsuan Yen
parent 6ed0118206
commit 4b32b62df3
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
#include "Emulation.h"
#include "HistorySearch.h"
HistorySearch::HistorySearch(EmulationPtr emulation, QRegExp regExp,
HistorySearch::HistorySearch(EmulationPtr emulation, const QRegExp& regExp,
bool forwards, int startColumn, int startLine,
QObject* parent) :
QObject(parent),