Просмотр исходного кода

Fixed small ubuntu-platform deploy issues

Ivan Arkhipov 6 лет назад
Родитель
Сommit
06981630f9
4 измененных файлов с 5 добавлено и 4 удалено
  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>