QTfrontend/campaign.cpp
changeset 12310 d3a52e51efd4
parent 11963 de66192866d3
child 13279 e381f5260b45
--- a/QTfrontend/campaign.cpp	Sat Apr 22 20:37:51 2017 +0200
+++ b/QTfrontend/campaign.cpp	Sat Apr 22 22:23:49 2017 +0200
@@ -107,11 +107,10 @@
 }
 
 /** Returns the localized campaign name */
-QString getRealCampName(QString & campaignName)
+QString getRealCampName(const QString & campaignName)
 {
-    QString campaignNameOrig = campaignName;
-    QString campaignNameSpaces = campaignName.replace(QString("_"), QString(" "));
-    return getCampMetaInfo()->value(campaignNameOrig+".name", campaignNameSpaces).toString();
+    QString campaignNameSpaces = QString(campaignName).replace(QString("_"), QString(" "));
+    return getCampMetaInfo()->value(campaignName+".name", campaignNameSpaces).toString();
 }
 
 QList<MissionInfo> getCampMissionList(QString & campaignName, QString & teamName)