Use const references where possible
Good practice and a minor performance improvement.
This commit is contained in:
committed by
Chih-Hsuan Yen
parent
6ed0118206
commit
4b32b62df3
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user