Commit ecee769e authored by Floréal Cabanettes's avatar Floréal Cabanettes

Fix compilation with some compilators

parent b755ab5d
......@@ -31,7 +31,7 @@ public:
message(message)
{}
virtual ~FileNotFoundException()
virtual ~FileNotFoundException() throw()
{
}
......
......@@ -64,7 +64,7 @@ public:
public:
static void loadConfig();
static QHash<int, QHash<QString, QString>> loadServerConfigs();
static QHash<int, QHash<QString, QString> > loadServerConfigs();
static bool saveRecipeToFile(QString title, QStringList categories, QString tpsPrep,
QString tpsCuis, QString tpsRep, QString nbPers, QString precision,
QString description, QStringList ingredients, QStringList materiel,
......
......@@ -33,7 +33,7 @@ public:
message(message)
{}
virtual ~GlobalException()
virtual ~GlobalException() throw()
{
}
......
......@@ -22,6 +22,8 @@
#ifndef SENDPYWEBCOOKING_H
#define SENDPYWEBCOOKING_H
#include <math.h>
#include <QDialog>
#include <QDebug>
#include <QHash>
......
......@@ -41,7 +41,7 @@ extern bool richSnippets;
extern bool recPrinter;
extern bool recCoupDeCoeur;
extern int configActive;
extern QHash<int,QHash<QString, QString>> serverConfs;
extern QHash<int,QHash<QString, QString> > serverConfs;
extern bool openLastDir_sauvegarde;
extern bool openLastDir_Img;
extern bool checkF7beforeSend;
......@@ -162,7 +162,7 @@ void Functions::loadConfig()
recCoupDeCoeur = serverConfs[configActive]["recCoupDeCoeur"] == "1";
}
QHash<int, QHash<QString, QString>> Functions::loadServerConfigs() {
QHash<int, QHash<QString, QString> > Functions::loadServerConfigs() {
QHash<int, QHash<QString, QString> > configServer;
for (int i = 1; i <= 5; i++) {
QFile *file = new QFile(confFile + ".serv" + QString::number(i));
......
......@@ -24,7 +24,7 @@
extern QString confDir;
extern int configActive;
extern QHash<int,QHash<QString, QString>> serverConfs;
extern QHash<int,QHash<QString, QString> > serverConfs;
Login::Login(QWidget *parent) :
QDialog(parent),
......
......@@ -74,7 +74,7 @@ bool richSnippets = false; //Active rich snippets for recipes in google search r
bool recPrinter = false; //CeC Printer status
bool recCoupDeCoeur = false; //Activate or not "coups de coeur"
int configActive = 1;
QHash<int,QHash<QString, QString>> serverConfs; //Store config for all server configurations
QHash<int,QHash<QString, QString> > serverConfs; //Store config for all server configurations
int idRecipe = -1;
bool openLastDir_sauvegarde = false;
bool openLastDir_Img = false;
......
......@@ -22,7 +22,7 @@
#include "opendistant.h"
#include "ui_opendistant.h"
extern QHash<int,QHash<QString, QString>> serverConfs;
extern QHash<int,QHash<QString, QString> > serverConfs;
extern QStringList namesCats;
OpenDistant::OpenDistant(QWidget *parent) :
......
......@@ -51,7 +51,7 @@ extern bool richSnippets;
extern bool recPrinter; //CeC Printer status
extern bool recCoupDeCoeur;
extern int configActive;
extern QHash<int,QHash<QString, QString>> serverConfs;
extern QHash<int,QHash<QString, QString> > serverConfs;
extern bool openLastDir_sauvegarde;
extern bool openLastDir_Img;
extern bool checkF7beforeSend;
......
......@@ -36,7 +36,7 @@ extern QString userDir;
extern QString confDir;
extern QString confFile;
extern QFile *confCatFile;
extern QHash<int,QHash<QString, QString>> serverConfs;
extern QHash<int,QHash<QString, QString> > serverConfs;
extern int configActive;
extern QStringList otherPicts;
......
......@@ -21,7 +21,7 @@
#include "sendpywebcooking.h"
extern QHash<int,QHash<QString, QString>> serverConfs;
extern QHash<int,QHash<QString, QString> > serverConfs;
extern QString cmdNav; //Command to launch navigator
extern int idRecipe;
extern QStringList otherPicts;
......
......@@ -21,7 +21,7 @@
#include "sendwordpress.h"
extern QHash<int,QHash<QString, QString>> serverConfs;
extern QHash<int,QHash<QString, QString> > serverConfs;
extern QString cmdNav; //Command to launch navigator
extern int idRecipe;
extern QStringList otherPicts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment