mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
RW's review fixes Ref T202 Ref T189 Ref T210
* dmg comment and follow up issue created * cppcheck-suppress passedByValue in cppcheck.supp * renamed from Xsb -> XSwiftBus * reverted wrong "static const QString dataStr"
This commit is contained in:
@@ -170,7 +170,7 @@ namespace BlackGui
|
||||
{
|
||||
const QString fileNameAndSize = ui->cb_DownloadFile->currentText();
|
||||
const CUpdateInfo update = m_updates.get();
|
||||
const CRemoteFileList remoteFiles = update.getArtifactsXsb().asRemoteFiles();
|
||||
const CRemoteFileList remoteFiles = update.getArtifactsXSwiftBus().asRemoteFiles();
|
||||
return remoteFiles.findFirstByMatchingNameOrDefault(fileNameAndSize);
|
||||
}
|
||||
|
||||
@@ -199,8 +199,8 @@ namespace BlackGui
|
||||
void CInstallXSwiftBusComponent::updatesChanged()
|
||||
{
|
||||
const CUpdateInfo updateInfo = m_updates.get();
|
||||
if (updateInfo.getArtifactsXsb().isEmpty()) { return; }
|
||||
const CArtifactList artifacts = updateInfo.getArtifactsXsbLatestVersionFirst();
|
||||
if (updateInfo.getArtifactsXSwiftBus().isEmpty()) { return; }
|
||||
const CArtifactList artifacts = updateInfo.getArtifactsXSwiftBusLatestVersionFirst();
|
||||
const CRemoteFileList remoteFiles = artifacts.asRemoteFiles();
|
||||
if (!remoteFiles.isEmpty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user