]> git.mxchange.org Git - flightgear.git/commitdiff
Fix MSVC2012 build
authorJames Turner <zakalawe@mac.com>
Tue, 24 Nov 2015 15:36:53 +0000 (15:36 +0000)
committerJames Turner <zakalawe@mac.com>
Tue, 24 Nov 2015 15:36:53 +0000 (15:36 +0000)
- multi-line QStringLiteral doesn’t work on MSVC prior to 2013. Boo.

src/GUI/PathsDialog.cxx

index 9282de1e07c275670af0c35d31cda34ae351f26e..726932deaf77f487550a4528cda85db267195dc8 100644 (file)
@@ -154,14 +154,14 @@ void PathsDialog::onRemoveCatalog()
     FGHTTPClient* http = static_cast<FGHTTPClient*>(globals->get_subsystem("http"));
 
     if (mi.isValid()) {
-        QString s = QStringLiteral("Remove aircraft hangar '%1'? All installed aircraft from this "
-                                   "hangar will be removed.");
+        QString s = QString("Remove aircraft hangar '%1'? All installed aircraft from this "
+                            "hangar will be removed.");
         QString pkgId = mi.data(CatalogIdRole).toString();
 
         if (pkgId.toStdString() == http->getDefaultCatalogId()) {
-            s = QStringLiteral("Remove default aircraft hangar? "
-                               "This hangar contains all the default aircraft included with FlightGear. "
-                               "If you change your mind in the future, click the 'restore' button.");
+            s = QString("Remove default aircraft hangar? "
+                        "This hangar contains all the default aircraft included with FlightGear. "
+                        "If you change your mind in the future, click the 'restore' button.");
         } else {
             s = s.arg(mi.data(Qt::DisplayRole).toString());
         }