Commit f8a9e099 authored by Kai Koehne's avatar Kai Koehne

Fix compiler warnings with MVSC2008

parent d80d68b7
......@@ -109,6 +109,11 @@ linux-g++-* {
QMAKE_LFLAGS += -Wl,--allow-shlib-undefined -Wl,--no-undefined
}
win32-msvc* {
#Don't warn about sprintf, fopen etc being 'unsafe'
DEFINES += _CRT_SECURE_NO_WARNINGS
}
# Handle S60 support: default on Windows, conditionally built on other platforms.
win32:SUPPORT_QT_S60=1
else:SUPPORT_QT_S60 = $$(QTCREATOR_WITH_S60)
......@@ -10,8 +10,7 @@ INCLUDEPATH += $$PWD $$PWD/../build $$PWD/../build/botan
win32 {
win32-msvc* {
QMAKE_CXXFLAGS += -wd4251 -wd4290
DEFINES += _CRT_SECURE_NO_WARNINGS
QMAKE_CXXFLAGS += -wd4251 -wd4290 -wd4250
DEFINES += BOTAN_DLL=__declspec(dllexport)
} else {
QMAKE_CFLAGS += -fpermissive -finline-functions -Wno-long-long
......
......@@ -87,7 +87,6 @@ void ItemLibrarySortedModel<T>::removeElement(int libId)
{
T *element = m_elementModels.value(libId);
int pos = findElement(libId);
struct order_struct orderEntry = m_elementOrder.at(pos);
setElementVisible(libId, false);
......
......@@ -39,7 +39,8 @@ QT_END_NAMESPACE
namespace QmlDesigner {
struct DesignerSettings {
class DesignerSettings {
public:
DesignerSettings();
void fromSettings(QSettings *);
......
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