rbutil: Use references to avoid creating temporary objects.

Get rid of some unnecessary object creating / copying by using
references.

Change-Id: Ia44e34f6f66d230caa9af7ef7c0eca73be12de2a
This commit is contained in:
Dominik Riebeling 2022-04-17 12:26:43 +02:00
parent 8c55ce62b9
commit 62108a9613
14 changed files with 24 additions and 25 deletions

View file

@ -35,7 +35,7 @@ class TTSExes : public TTSBase
Q_OBJECT
public:
TTSExes(QObject* parent=nullptr);
TTSStatus voice(QString text, QString wavfile, QString *errStr);
TTSStatus voice(const QString& text, const QString& wavfile, QString *errStr);
bool start(QString *errStr);
bool stop() {return true;}
QString voiceVendor(void) { return QString(); }