Try to fix Windows build.
This commit is contained in:
parent
3a309e9b25
commit
53b8f59e6f
@ -212,7 +212,7 @@ QString MakeTempDir(const QString template_name) {
|
|||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString GetTempFileName() {
|
QString GetTemporaryFileName() {
|
||||||
QString file;
|
QString file;
|
||||||
{
|
{
|
||||||
QTemporaryFile tempfile;
|
QTemporaryFile tempfile;
|
||||||
|
@ -49,7 +49,7 @@ namespace Utilities {
|
|||||||
quint64 FileSystemFreeSpace(const QString& path);
|
quint64 FileSystemFreeSpace(const QString& path);
|
||||||
|
|
||||||
QString MakeTempDir(const QString template_name = QString());
|
QString MakeTempDir(const QString template_name = QString());
|
||||||
QString GetTempFileName();
|
QString GetTemporaryFileName();
|
||||||
void RemoveRecursive(const QString& path);
|
void RemoveRecursive(const QString& path);
|
||||||
bool CopyRecursive(const QString& source, const QString& destination);
|
bool CopyRecursive(const QString& source, const QString& destination);
|
||||||
bool Copy(QIODevice* source, QIODevice* destination);
|
bool Copy(QIODevice* source, QIODevice* destination);
|
||||||
|
@ -715,7 +715,7 @@ void OutgoingDataCreator::SendPlaylist(RemoteClient *client, int playlist_id) {
|
|||||||
|
|
||||||
void OutgoingDataCreator::SendLibrary(RemoteClient *client) {
|
void OutgoingDataCreator::SendLibrary(RemoteClient *client) {
|
||||||
// Get a temporary file name
|
// Get a temporary file name
|
||||||
QString temp_file_name = Utilities::GetTempFileName();
|
QString temp_file_name = Utilities::GetTemporaryFileName();
|
||||||
|
|
||||||
// Attach this file to the database
|
// Attach this file to the database
|
||||||
Database::AttachedDatabase adb(temp_file_name, "", true);
|
Database::AttachedDatabase adb(temp_file_name, "", true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user