From dbf3f68ecc0c6d5d992a8d0e8254a42c561592f9 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Fri, 20 Feb 2015 17:37:49 +0100 Subject: [PATCH] Create Logger for BasicBlockWidgets --- src/gui/widgets/BasicBlockWidget.cxx | 3 ++- src/gui/widgets/BasicBlockWidget.hxx | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/BasicBlockWidget.cxx b/src/gui/widgets/BasicBlockWidget.cxx index b9a1b14..8b6dbe5 100644 --- a/src/gui/widgets/BasicBlockWidget.cxx +++ b/src/gui/widgets/BasicBlockWidget.cxx @@ -61,7 +61,8 @@ BasicBlockWidget::BasicBlockWidget(const QString& name, BasicBlock * block, Mainwindow * mainwindow) : width(270), height(45), name(name) , _table(NULL) - , block(block), mainwindow(mainwindow) { + , block(block), mainwindow(mainwindow) + , logger(log4cxx::Logger::getLogger(name.toStdString() + "BasicBlock")) { next[0] = NULL; next[1] = NULL; _widget.reset(new CustomQGraphicsTextItem("", this, mainwindow)); _widget->setPos(5, 20); diff --git a/src/gui/widgets/BasicBlockWidget.hxx b/src/gui/widgets/BasicBlockWidget.hxx index 2c9cec3..b45069c 100644 --- a/src/gui/widgets/BasicBlockWidget.hxx +++ b/src/gui/widgets/BasicBlockWidget.hxx @@ -7,6 +7,7 @@ #include #include #include +#include class Mainwindow; class BasicBlock; @@ -49,6 +50,7 @@ private: Mainwindow* mainwindow; std::vector previous; BasicBlockWidget* next[2]; + log4cxx::LoggerPtr logger; }; #endif -- 2.39.5