Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1052 from kde-freebsd/master
Browse files Browse the repository at this point in the history
 Include ctime for time_t and fix tr() call.
  • Loading branch information
CDrummond committed Aug 12, 2017
2 parents 9f5e007 + c3fe888 commit acc4cae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion devices/cddbinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void CddbInterface::readDisc()
cddb_track_t *track = cddb_track_new();
if (track) {
cddb_track_set_frame_offset(track, te.entry.addr.lba + SECONDS_TO_FRAMES(2));
cddb_track_set_title(track, te.entry.control&0x04 ? dataTrack().toUtf8().constData() : tr("Track %1", i).toUtf8().constData());
cddb_track_set_title(track, te.entry.control&0x04 ? dataTrack().toUtf8().constData() : tr("Track %1").arg(i).toUtf8().constData());
cddb_track_set_artist(track, unknown.constData());
cddb_disc_add_track(disc, track);
}
Expand Down
2 changes: 2 additions & 0 deletions mpd-interface/httpstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#include "mpdconnection.h"
#include "mpdstatus.h"
#include "gui/settings.h"
#ifndef LIBVLC_FOUND
#include <QtMultimedia/QMediaPlayer>
#endif
#include <QTimer>

static const int constPlayerCheckPeriod=250;
Expand Down
1 change: 1 addition & 0 deletions mpd-interface/mpdstats.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#ifndef MPD_STATS_H
#define MPD_STATS_H

#include <ctime>
#include <QDateTime>
#include <QObject>

Expand Down

0 comments on commit acc4cae

Please sign in to comment.