[netinstall] Apply coding style
This commit is contained in:
parent
8e8525a941
commit
79b4f918fc
@ -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…
Reference in New Issue
Block a user