summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2013-10-09 14:19:53 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-24 10:18:26 +0200
commit2e3870fe37d36ccf4bd84eb90e1d5e08ad00c1bc (patch)
treeb97b9ec244feda65d04aa624c6c8e83eadab7c0b /src/corelib/io
parent6d3e821349944229d02c878edc38b1781c567350 (diff)
Reserve some space for future use in QLoggingCategory
Currently Qt offers only debug, warning, critical message types for general use. Most logging frameworks offer more ... let's save some space for future message types. Change-Id: Icb4333da5c8f5277fd10d8a01b06d95369662bdc Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qloggingcategory.cpp5
-rw-r--r--src/corelib/io/qloggingcategory.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/io/qloggingcategory.cpp b/src/corelib/io/qloggingcategory.cpp
index d472682ace..8d337ec630 100644
--- a/src/corelib/io/qloggingcategory.cpp
+++ b/src/corelib/io/qloggingcategory.cpp
@@ -123,7 +123,10 @@ QLoggingCategory::QLoggingCategory(const char *category)
enabledDebug(false),
enabledWarning(true),
enabledCritical(true),
- enabledTrace(false)
+ enabledTrace(false),
+ placeholder1(false),
+ placeholder2(false),
+ placeholder3(false)
{
bool isDefaultCategory
= (category == 0) || (strcmp(category, qtDefaultCategoryName) == 0);
diff --git a/src/corelib/io/qloggingcategory.h b/src/corelib/io/qloggingcategory.h
index 6009226127..7a119f4937 100644
--- a/src/corelib/io/qloggingcategory.h
+++ b/src/corelib/io/qloggingcategory.h
@@ -92,6 +92,10 @@ private:
bool enabledWarning;
bool enabledCritical;
bool enabledTrace;
+ // reserve space for future use
+ bool placeholder1;
+ bool placeholder2;
+ bool placeholder3;
};
class Q_CORE_EXPORT QTracer