]> git.siccegge.de Git - frida/frida.git/commitdiff
formating improvements
authorChristoph Egger <siccegge@faui49man12.informatik.uni-erlangen.de>
Thu, 8 Jan 2015 17:45:43 +0000 (18:45 +0100)
committerChristoph Egger <siccegge@faui49man12.informatik.uni-erlangen.de>
Thu, 8 Jan 2015 17:45:43 +0000 (18:45 +0100)
src/gui/Mainwindow.cxx
src/gui/widgets/BasicBlockWidget.hxx

index 34dcfb1496dd05dfa29095b34971c9383d5d94f8..5643beb23731e7017f0b39b6066297fc05cdac92 100644 (file)
@@ -23,9 +23,11 @@ Mainwindow::Mainwindow(InformationManager* mgr)
        // saveAction = new QAction(tr("&Save"), this);
        exitAction = new QAction(tr("E&xit"), this);
 
-       connect(openAction, SIGNAL(triggered()), this, SLOT(open()));
+       connect(openAction, SIGNAL(triggered()),
+               this, SLOT(open()));
        // connect(saveAction, SIGNAL(triggered()), this, SLOT(save()));
-       connect(exitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
+       connect(exitAction, SIGNAL(triggered()),
+               qApp, SLOT(quit()));
 
        fileMenu = menuBar()->addMenu(tr("&File"));
        fileMenu->addAction(openAction);
@@ -86,7 +88,8 @@ void Mainwindow::addFunction(Function* fun) {
        Disassembler * dis = manager->getDisassembler();
        BasicBlock * block = dis->getBasicBlock(fun->getStartAddress());
 
-       local__add_basic_block(block, manager->getDisassembler(), blocks, scene, block->getStartAddress(), 100);
+       local__add_basic_block(block, manager->getDisassembler(), blocks, scene,
+                              block->getStartAddress(), 100);
 
        QGraphicsView * view = new QGraphicsView(scene);
        w->addTab(view, "CFG");
@@ -123,8 +126,11 @@ namespace {
                widget->setFlag(QGraphicsItem::ItemIsMovable, true);
                widget->moveBy(100*startx, block->getStartAddress() - starty);
 
-               dis->printEachInstruction(block->getStartAddress(), block->getEndAddress(),
-                                         [&](uint8_t* bytes, size_t byte_count, const std::string& line) {
+               dis->printEachInstruction(block->getStartAddress(),
+                                         block->getEndAddress(),
+                                         [&](uint8_t* bytes,
+                                             size_t byte_count,
+                                             const std::string& line) {
                                                  widget->addItem(bytes, byte_count, line.c_str() + 1);
                                          });
 
index 8aa182f671f94c130f923729ec4ef01a90053997..8c86667f7c9a480e5a32d2eb8745dc50c49841aa 100644 (file)
@@ -32,9 +32,9 @@ public:
        }
 
        std::array<QPointF, 3> getExits() const {
-               return { {  mapToScene(QPointF(  width/3, height)),
-                                       mapToScene(QPointF(  width/2, height)),
-                                       mapToScene(QPointF(2*width/3, height)) } };
+               return { { mapToScene(QPointF(  width/3, height)),
+                          mapToScene(QPointF(  width/2, height)),
+                          mapToScene(QPointF(2*width/3, height)) } };
        }
 
        void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,