From 0c475554238d16e47cee29d68e9eb6b4f3f1d994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 26 Jan 2014 16:19:49 +0100 Subject: [PATCH] CheckNullPointer: use library instead of hard coded info --- cfg/std.cfg | 10 +++++----- lib/checknullpointer.cpp | 8 -------- test/testuninitvar.cpp | 6 ++++++ 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/cfg/std.cfg b/cfg/std.cfg index 2d9135c3e..6c01f439e 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -30,11 +30,11 @@ false 0-255 false 0-255 - false 0- - false 0- - false 0- - false 0- - false 0- + false 0- + false 0- + false 0- + false 0- + false 0- false false diff --git a/lib/checknullpointer.cpp b/lib/checknullpointer.cpp index 18b33c7c4..4ddda7375 100644 --- a/lib/checknullpointer.cpp +++ b/lib/checknullpointer.cpp @@ -66,8 +66,6 @@ void CheckNullPointer::parseFunctionCall(const Token &tok, std::list" + "" + " " + ""; + settings.library.loadxmldata(cfg,sizeof(cfg)); + // Tokenize.. Tokenizer tokenizer(&settings, this); std::istringstream istr(code);