GUI: pass record file name by reference

This commit is contained in:
Martin Gerhardy 2021-02-20 19:17:14 +01:00
parent 2d6b182487
commit 03d174384e
2 changed files with 2 additions and 2 deletions

View File

@ -259,7 +259,7 @@ Common::String EventRecorder::generateRecordFileName(const Common::String &targe
}
void EventRecorder::init(Common::String recordFileName, RecordMode mode) {
void EventRecorder::init(const Common::String &recordFileName, RecordMode mode) {
_fakeMixerManager = new NullMixerManager();
_fakeMixerManager->init();
_fakeMixerManager->suspendAudio();

View File

@ -77,7 +77,7 @@ public:
kRecorderPlaybackPause = 3 /**< kRecordetPlaybackPause, interal state when user pauses the playback */
};
void init(Common::String recordFileName, RecordMode mode);
void init(const Common::String &recordFileName, RecordMode mode);
void deinit();
bool processDelayMillis();
uint32 getRandomSeed(const Common::String &name);