From 25df9ce72006e52e485e03abaa6f5351989e29b2 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Thu, 16 Nov 2017 02:15:24 +0100 Subject: [PATCH] Ref T195, log category ctor for single element --- src/blackmisc/logcategorylist.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/blackmisc/logcategorylist.h b/src/blackmisc/logcategorylist.h index c5cca55a3..0692481b8 100644 --- a/src/blackmisc/logcategorylist.h +++ b/src/blackmisc/logcategorylist.h @@ -41,6 +41,9 @@ namespace BlackMisc //! Empty constructor. CLogCategoryList() = default; + //! By single element + CLogCategoryList(const CLogCategory &category) { this->push_back(category); } + //! Copy constructor. CLogCategoryList(const CLogCategoryList &) = default;