mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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:
parent
8c55ce62b9
commit
62108a9613
14 changed files with 24 additions and 25 deletions
|
|
@ -54,7 +54,7 @@ public:
|
|||
TTSFakeEspeak(QObject *parent): TTSBase(parent) {}
|
||||
virtual bool start(QString *errStr) { (void)errStr; return true; }
|
||||
virtual bool stop() { return true; }
|
||||
virtual TTSStatus voice(QString text, QString wavfile, QString *errStr)
|
||||
virtual TTSStatus voice(const QString& text, const QString& wavfile, QString *errStr)
|
||||
{ (void)text; (void)wavfile; (void)errStr; return NoError; }
|
||||
virtual QString voiceVendor() { return QString("DummyVendor"); }
|
||||
virtual bool configOk() { return true; }
|
||||
|
|
@ -67,7 +67,7 @@ TTSBase::TTSBase(QObject* parent) : EncTtsSettingInterface(parent)
|
|||
{
|
||||
}
|
||||
|
||||
TTSStatus TTSBase::voice(QString /*text*/, QString /*wavfile*/, QString* /*errStr*/)
|
||||
TTSStatus TTSBase::voice(const QString& /*text*/, const QString& /*wavfile*/, QString* /*errStr*/)
|
||||
{
|
||||
return NoError;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue