gnucash maint: Bug 797041 - enum confusion in qoflog.

John Ralls jralls at code.gnucash.org
Sun Jan 13 19:31:48 EST 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/3ab5a2be (commit)
	from  https://github.com/Gnucash/gnucash/commit/e4836f3c (commit)



commit 3ab5a2be52f344de971c59cf11f1fb3bd23d6ded
Author: Thomas Klausner <tk at giga.or.at>
Date:   Sat Jan 12 12:10:41 2019 +0100

    Bug 797041 - enum confusion in qoflog.

diff --git a/libgnucash/engine/qoflog.cpp b/libgnucash/engine/qoflog.cpp
index fc2738d..6ed9c7c 100644
--- a/libgnucash/engine/qoflog.cpp
+++ b/libgnucash/engine/qoflog.cpp
@@ -429,22 +429,22 @@ qof_log_level_to_string(QofLogLevel log_level)
     const char *level_str;
     switch (log_level)
     {
-    case G_LOG_LEVEL_ERROR:
-        level_str = "ERROR";
+    case QOF_LOG_FATAL:
+        level_str = "FATAL";
         break;
-    case G_LOG_LEVEL_CRITICAL:
-        level_str = "CRIT";
+    case QOF_LOG_ERROR:
+        level_str = "ERROR";
         break;
-    case G_LOG_LEVEL_WARNING:
+    case QOF_LOG_WARNING:
         level_str = "WARN";
         break;
-    case G_LOG_LEVEL_MESSAGE:
+    case QOF_LOG_MESSAGE:
         level_str = "MESSG";
         break;
-    case G_LOG_LEVEL_INFO:
+    case QOF_LOG_INFO:
         level_str = "INFO";
         break;
-    case G_LOG_LEVEL_DEBUG:
+    case QOF_LOG_DEBUG:
         level_str = "DEBUG";
         break;
     default:



Summary of changes:
 libgnucash/engine/qoflog.cpp | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)



More information about the gnucash-changes mailing list