- Fixed compilation warning in main.cpp

- Removed use of Qt3 backport headers in ico.cpp
This commit is contained in:
Christophe Dumez 2008-12-15 19:24:10 +00:00
parent 78409570a9
commit 70e2a5d3b3
2 changed files with 3 additions and 12 deletions

View file

@ -45,7 +45,6 @@
#endif
#include <stdlib.h>
#include "GUI.h"
#include "misc.h"
#include "ico.h"
@ -96,7 +95,7 @@ int main(int argc, char *argv[]){
}
}
// Set environment variable
if(putenv("QBITTORRENT="VERSION)){
if(putenv((char*)"QBITTORRENT="VERSION)) {
std::cerr << "Couldn't set environment variable...\n";
}
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));