]> git.siccegge.de Git - frida/frida.git/blobdiff - src/gui/widgets/BasicBlockWidget.cxx
Move ScriptingDock contructor to cxx file
[frida/frida.git] / src / gui / widgets / BasicBlockWidget.cxx
index f66a575167b83fb25d1cc12b4fd06d5975b583a0..908c85e8c31c63f4833ce663550cb8f2a7f9b7e1 100644 (file)
@@ -144,7 +144,7 @@ void BasicBlockWidget::addItem(uint8_t* bytes, size_t num_bytes,
                        Function* fun = block->getManager()->getFunction(address);
 
                        if (fun) {
-                               line = line.split(" ")[0] + " " + fun->getName().c_str();
+                               line = line.split(" ")[0] + " " + QString(fun->getName().c_str()).toHtmlEscaped();
                                LOG4CXX_DEBUG(logger, "Naming function at " << address << " " << fun->getName());
                        }
                }
@@ -154,8 +154,8 @@ void BasicBlockWidget::addItem(uint8_t* bytes, size_t num_bytes,
        _table->cellAt(row, 1).firstCursorPosition().insertHtml(line);
 }
 
-void BasicBlockWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
-                  QWidget *widget) {
+void BasicBlockWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem*,
+                  QWidget*) {
        width = 10 + _widget->boundingRect().width();
        height = 25 + _widget->boundingRect().height();
        if (width < 250) width = 250;