add a couple of missing consts

This commit is contained in:
Stephen Birarda 2014-09-18 11:14:17 -07:00
parent ac588a569e
commit 2ee367fa44
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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.";
}