From 10db7c4a48aeeb75efad4721a073e4a963f983ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 6 Mar 2011 14:26:02 +0100 Subject: [PATCH] error logger: explain the severities better --- lib/errorlogger.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/errorlogger.h b/lib/errorlogger.h index b50cf5d72..055e551e0 100644 --- a/lib/errorlogger.h +++ b/lib/errorlogger.h @@ -47,14 +47,20 @@ public: /** * Programming error. * This indicates severe error like memory leak etc. + * The error is certain. */ error, /** * Warning. + * Used for dangerous coding style that can cause severe runtime errors. + * For example: forgetting to initialize a member variable in a constructor. */ warning, /** * Style warning. + * Used for general code cleanup recommendations. Fixing these + * will not fix any bugs but will make the code easier to maintain. + * For example: redundant code, unreachable code, etc. */ style, /**