From 475f12eec3c21b7f47540e538e78145b1dba8b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 26 Aug 2012 08:19:43 +0200 Subject: [PATCH] gui: fixed compiler errors --- gui/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 1530bbad9..6de89ecab 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -504,8 +504,8 @@ Settings MainWindow::GetCppcheckSettings() result._inlineSuppressions = mSettings->value(SETTINGS_INLINE_SUPPRESSIONS, false).toBool(); result.inconclusive = mSettings->value(SETTINGS_INCONCLUSIVE_ERRORS, false).toBool(); result.platformType = (Settings::PlatformType) mSettings->value(SETTINGS_CHECKED_PLATFORM, 0).toInt(); - result.standards.cpp11 = mSettings->value(SETTINGS_STD_CPP11, false).toBool(); - result.standards.c99 = mSettings->value(SETTINGS_STD_C99, false).toBool(); + result.standards.cpp = mSettings->value(SETTINGS_STD_CPP11, false).toBool() ? Standards::CPP11 : Standards::CPP03; + result.standards.c = mSettings->value(SETTINGS_STD_C99, false).toBool() ? Standards::C99 : Standards::C89; result.standards.posix = mSettings->value(SETTINGS_STD_POSIX, false).toBool(); if (result._jobs <= 0) {