dont use windows min max macros (#37)

* windowmanager destructor free _mainwindow, fix save - remove const in
settingsPath that is being written to from ptree tree

* syntax error

* remove destructor, _mainWindow does not need any special cleanup, let OS claim the resource

* nominmax
This commit is contained in:
hemirt 2017-04-14 14:25:49 +02:00 committed by fourtf
parent 744940ffd5
commit 5db315b522
3 changed files with 5 additions and 2 deletions

View file

@ -19,6 +19,11 @@ TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += IRC_NAMESPACE=Communi
# do not use windows min/max macros
win32 {
DEFINES += NOMINMAX
}
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += main.cpp\

View file

@ -1,7 +1,6 @@
#ifndef WINNATIVEWINDOW_H
#define WINNATIVEWINDOW_H
#define NOMINMAX
#include "Windows.h"
#include "Windowsx.h"

View file

@ -10,7 +10,6 @@
#include <boost/foreach.hpp>
#ifdef USEWINSDK
#define NOMINMAX
#include "Windows.h"
#endif