From 6b6ad558b68f3fd5034f47d92b7b702d2c41a45b Mon Sep 17 00:00:00 2001 From: GriffinR Date: Sat, 5 Dec 2020 17:47:51 -0500 Subject: [PATCH] Remove unnecessary assignment --- src/ui/newmappopup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/newmappopup.cpp b/src/ui/newmappopup.cpp index 717d6f1a..19059623 100644 --- a/src/ui/newmappopup.cpp +++ b/src/ui/newmappopup.cpp @@ -187,7 +187,7 @@ void NewMapPopup::on_pushButton_NewMap_Accept_clicked() { // If map name is not unique, use default value. Also use only valid characters. // After stripping invalid characters, strip any leading digits. QString newMapName = this->ui->lineEdit_NewMap_Name->text().remove(QRegularExpression("[^a-zA-Z0-9_]+")); - newMapName = newMapName.remove(QRegularExpression("^[0-9]*")); + newMapName.remove(QRegularExpression("^[0-9]*")); if (project->mapNames->contains(newMapName) || newMapName.isEmpty()) { newMapName = project->getNewMapName(); }