mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:16:45 +02:00
add a couple of missing consts
This commit is contained in:
parent
ac588a569e
commit
2ee367fa44
2 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ void Player::loopRecording() {
|
||||||
_timer.restart();
|
_timer.restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::loadFromFile(QString& file) {
|
void Player::loadFromFile(const QString& file) {
|
||||||
if (_recording) {
|
if (_recording) {
|
||||||
_recording->clear();
|
_recording->clear();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -86,7 +86,7 @@ void Recorder::stopRecording() {
|
||||||
qDebug().nospace() << "Recorded " << _recording->getFrameNumber() << " during " << _recording->getLength() << " msec (" << _recording->getFrameNumber() / (_recording->getLength() / 1000.0f) << " fps)";
|
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()) {
|
if (_recording->isEmpty()) {
|
||||||
qDebug() << "Cannot save recording to file, recording is empty.";
|
qDebug() << "Cannot save recording to file, recording is empty.";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue