diff --git a/libraries/avatars/src/Player.cpp b/libraries/avatars/src/Player.cpp index 3b74ce595a..402c108d57 100644 --- a/libraries/avatars/src/Player.cpp +++ b/libraries/avatars/src/Player.cpp @@ -159,7 +159,7 @@ void Player::loopRecording() { _timer.restart(); } -void Player::loadFromFile(QString& file) { +void Player::loadFromFile(const QString& file) { if (_recording) { _recording->clear(); } else { diff --git a/libraries/avatars/src/Recorder.cpp b/libraries/avatars/src/Recorder.cpp index ec21e2969c..b54c92744a 100644 --- a/libraries/avatars/src/Recorder.cpp +++ b/libraries/avatars/src/Recorder.cpp @@ -86,7 +86,7 @@ void Recorder::stopRecording() { qDebug().nospace() << "Recorded " << _recording->getFrameNumber() << " during " << _recording->getLength() << " msec (" << _recording->getFrameNumber() / (_recording->getLength() / 1000.0f) << " fps)"; } -void Recorder::saveToFile(QString& file) { +void Recorder::saveToFile(const QString& file) { if (_recording->isEmpty()) { qDebug() << "Cannot save recording to file, recording is empty."; }