diff options
author | Sune Vuorela <sune@vuorela.dk> | 2018-06-30 18:06:33 +0200 |
---|---|---|
committer | Sune Vuorela <sune@vuorela.dk> | 2018-07-02 19:43:18 +0000 |
commit | 4ab33394b259e5bc8d8ffccf35cf183fc4d4bf9c (patch) | |
tree | 129dec58ce78053aa2b1f9a1d5f24eab67289308 /src/corelib/io/qloggingcategory.cpp | |
parent | 84ecc17152968f7fafe2de27599fb10589534c78 (diff) |
Ownership is unclear, so document it to avoid crashes for users
Change-Id: I708b04fcdf4f118526317f3aea2401f5dafd2e87
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src/corelib/io/qloggingcategory.cpp')
-rw-r--r-- | src/corelib/io/qloggingcategory.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/io/qloggingcategory.cpp b/src/corelib/io/qloggingcategory.cpp index a6c27d19c0..d8402c4eb6 100644 --- a/src/corelib/io/qloggingcategory.cpp +++ b/src/corelib/io/qloggingcategory.cpp @@ -221,6 +221,8 @@ static void setBoolLane(QBasicAtomicInt *atomic, bool enable, int shift) All message types for this category are enabled by default. If \a category is \c{0}, the category name is changed to \c "default". + + Note that \a category must be kept valid during the lifetime of this object. */ QLoggingCategory::QLoggingCategory(const char *category) : d(0), @@ -235,6 +237,8 @@ QLoggingCategory::QLoggingCategory(const char *category) If \a category is \c{0}, the category name is changed to \c "default". + Note that \a category must be kept valid during the lifetime of this object. + \since 5.4 */ QLoggingCategory::QLoggingCategory(const char *category, QtMsgType enableForLevel) |