summaryrefslogtreecommitdiffstats
path: root/src/recording
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-12-02 21:11:43 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-12-02 21:11:43 +0100
commitb207bd38e1574cb75315a2c66e7a598c22fc55ca (patch)
tree05b3a58ac8261e1f43a944018e48c15171032052 /src/recording
parent8e18359de7cfc2521045671007ec6115c150dd55 (diff)
parent532b713e0e570083c8ecd5708942cacb66835838 (diff)
Merge branch '2.3' of github.com:mixxxdj/mixxx into cleanup-headers
Diffstat (limited to 'src/recording')
-rw-r--r--src/recording/recordingmanager.cpp2
-rw-r--r--src/recording/recordingmanager.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/recording/recordingmanager.cpp b/src/recording/recordingmanager.cpp
index 54d635de11..63dab0851a 100644
--- a/src/recording/recordingmanager.cpp
+++ b/src/recording/recordingmanager.cpp
@@ -74,7 +74,7 @@ RecordingManager::~RecordingManager() {
delete m_pToggleRecording;
}
-QString RecordingManager::formatDateTimeForFilename(QDateTime dateTime) const {
+QString RecordingManager::formatDateTimeForFilename(const QDateTime& dateTime) const {
// Use a format based on ISO 8601. Windows does not support colons in
// filenames so we can't use them anywhere.
QString formatted = dateTime.toString("yyyy-MM-dd_hh'h'mm'm'ss's'");
diff --git a/src/recording/recordingmanager.h b/src/recording/recordingmanager.h
index f458c14cd1..526963f6cb 100644
--- a/src/recording/recordingmanager.h
+++ b/src/recording/recordingmanager.h
@@ -48,7 +48,7 @@ class RecordingManager : public QObject
// Emits the cumulative number of bytes currently recorded.
void bytesRecorded(int);
void isRecording(bool);
- void durationRecorded(QString);
+ void durationRecorded(const QString&);
public slots:
void slotIsRecording(bool recording, bool error);
@@ -58,7 +58,7 @@ class RecordingManager : public QObject
void slotToggleRecording(double value);
private:
- QString formatDateTimeForFilename(QDateTime dateTime) const;
+ QString formatDateTimeForFilename(const QDateTime& dateTime) const;
// slotBytesRecorded just noticed that recording must be interrupted
// to split the file. The nth filename will follow the date/time
// name of the first split but with a suffix.