Skip to content

Commit 993120a

Browse files
committed
Remove unnecessary QList to QSet conversion
1 parent bfd5742 commit 993120a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/NotepadNext/NotepadNextApplication.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,10 @@ void NotepadNextApplication::sendInfoToPrimaryInstance()
341341

342342
QStringList argsToSend;
343343
const QStringList positionalArguments = parser.positionalArguments();
344-
const QSet<QString> positionalSet(positionalArguments.begin(), positionalArguments.end());
345344

346345
// Any positional arguments need translated into an absolute file path relative to this instance
347346
for (const QString &arg : arguments()) {
348-
if (positionalSet.contains(arg)) {
347+
if (positionalArguments.contains(arg)) {
349348
QFileInfo fileInfo(arg);
350349
argsToSend.append(fileInfo.absoluteFilePath());
351350
} else {

0 commit comments

Comments
 (0)