diff --git a/ChangeLog b/ChangeLog index b609b09a..45f786b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25028,3 +25028,5 @@ * Cleaned up compiler warnings in 'utils/rdsoftkeys/'. 2025-04-26 Fred Gleason * Cleaned up compiler warnings in 'web/rdxport/'. +2025-04-26 Fred Gleason + * Cleaned up compiler warnings in 'web/webget/'. diff --git a/web/webget/webget.cpp b/web/webget/webget.cpp index 50adc832..e93a8c34 100644 --- a/web/webget/webget.cpp +++ b/web/webget/webget.cpp @@ -2,7 +2,7 @@ // // Rivendell upload/download utility // -// (C) Copyright 2018-2023 Fred Gleason +// (C) Copyright 2018-2025 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -416,8 +416,8 @@ void MainObject::PutAudio() // // Generate Title // - QStringList f0=filename.split("/",QString::SkipEmptyParts); - QStringList f1=f0.last().split(".",QString::KeepEmptyParts); + QStringList f0=filename.split("/",Qt::SkipEmptyParts); + QStringList f1=f0.last().split(".",Qt::KeepEmptyParts); QString short_name=f0.last(); f1.removeLast(); QString title=f1.join("."); @@ -789,7 +789,7 @@ void MainObject::SaveSourceFile(const QString &filepath) const return; } QDateTime now=QDateTime::currentDateTime(); - QStringList f0=filepath.split("/",QString::SkipEmptyParts); + QStringList f0=filepath.split("/",Qt::SkipEmptyParts); QString filename=rda->config()->saveWebgetFilesDirectory()+"/"+ now.toString("yyyyMMdd-hhmmss-")+f0.last(); @@ -816,7 +816,7 @@ void MainObject::SaveSourceFile(const QString &filepath) const return; } filename=rda->config()->saveWebgetFilesDirectory()+"/"+ - now.toString("yyyyMMdd-hhmmss")+QString().sprintf("[%d]-",num)+f0.last(); + now.toString("yyyyMMdd-hhmmss")+QString::asprintf("[%d]-",num)+f0.last(); num++; }