Parcourir la source

Fixed small ubuntu-platform deploy issues

Ivan Arkhipov il y a 6 ans
Parent
commit
06981630f9
4 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. 1 0
      client.pro
  2. 1 1
      include/units/unit.h
  3. 2 2
      source/racemanager.cpp
  4. 1 1
      source/units/unit.cpp

+ 1 - 0
client.pro

@@ -10,6 +10,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
 
 TARGET = client
 TEMPLATE = app
+CONFIG += c++11
 
 # The following define makes your compiler emit warnings if you use
 # any feature of Qt which has been marked as deprecated (the exact warnings

+ 1 - 1
include/units/unit.h

@@ -1,6 +1,6 @@
 #pragma once
 
-#include "AbstractFactory.h"
+#include "abstractfactory.h"
 
 #include <QObject>
 #include <QString>

+ 2 - 2
source/racemanager.cpp

@@ -20,14 +20,14 @@ RaceManager::RaceManager(QObject *parent) : QObject(parent)
         }
         if (race_name.length() < 2)
             continue;
-        qDebug() << available_races_;
+        //qDebug() << available_races_;
         available_races_.push_back(race_name);
         races_[race_name] = new Race(race_name);
         race_name = in.readLine();
     }
 
     if (race_name.length() >= 2) {
-        qDebug() << available_races_;
+        //qDebug() << available_races_;
         available_races_.push_back(race_name);
         races_[race_name] = new Race(race_name);
         race_name = in.readLine();

+ 1 - 1
source/units/unit.cpp

@@ -1,4 +1,4 @@
-#include "AbstractFactory.h"
+#include "abstractfactory.h"
 #include "units/unit.h"
 
 #include <iostream>