mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 10:55:37 -04:00
[netinstall] Apply coding style
This commit is contained in:
parent
8e8525a941
commit
79b4f918fc
2 changed files with 6 additions and 5 deletions
|
@ -170,15 +170,16 @@ Config::receivedGroupData()
|
|||
}
|
||||
}
|
||||
|
||||
Config::SourceItem Config::SourceItem::makeSourceItem(const QVariantMap& configurationMap, const QString& groupsUrl)
|
||||
Config::SourceItem
|
||||
Config::SourceItem::makeSourceItem( const QVariantMap& configurationMap, const QString& groupsUrl )
|
||||
{
|
||||
if ( groupsUrl == QStringLiteral( "local" ) )
|
||||
{
|
||||
return SourceItem{ QUrl(), configurationMap.value( "groups" ).toList() };
|
||||
return SourceItem { QUrl(), configurationMap.value( "groups" ).toList() };
|
||||
}
|
||||
else
|
||||
{
|
||||
return SourceItem{ QUrl{ groupsUrl }, QVariantList() };
|
||||
return SourceItem { QUrl { groupsUrl }, QVariantList() };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
#include "locale/TranslatableConfiguration.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QUrl>
|
||||
#include <QQueue>
|
||||
#include <QUrl>
|
||||
#include <QVariantMap>
|
||||
|
||||
class QNetworkReply;
|
||||
|
@ -99,7 +99,7 @@ private:
|
|||
bool isUrl() const { return url.isValid(); }
|
||||
bool isLocal() const { return !data.isEmpty(); }
|
||||
bool isValid() const { return isUrl() || isLocal(); }
|
||||
static SourceItem makeSourceItem( const QVariantMap& configurationMap, const QString& groupsUrl);
|
||||
static SourceItem makeSourceItem( const QVariantMap& configurationMap, const QString& groupsUrl );
|
||||
};
|
||||
|
||||
QQueue< SourceItem > m_urls;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue