forked from qt-creator/qt-creator
Replace a few occurrences of QStringList() << ...
... by something shorter. Change-Id: I363b4e509adb07997517b2d233246a333aea4aea Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -91,9 +91,9 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
const QStringList protocols = QStringList() << KdePasteProtocol::protocolName().toLower()
|
||||
<< PasteBinDotCaProtocol::protocolName().toLower()
|
||||
<< PasteBinDotComProtocol::protocolName().toLower();
|
||||
const QStringList protocols = { KdePasteProtocol::protocolName().toLower(),
|
||||
PasteBinDotCaProtocol::protocolName().toLower(),
|
||||
PasteBinDotComProtocol::protocolName().toLower() };
|
||||
ArgumentsCollector argsCollector(protocols);
|
||||
QStringList arguments = QCoreApplication::arguments();
|
||||
arguments.removeFirst();
|
||||
|
||||
Reference in New Issue
Block a user