From 836a5442871df4f68109443557515758c8193382 Mon Sep 17 00:00:00 2001 From: torusrxxx Date: Tue, 13 Nov 2018 10:01:22 +0800 Subject: [PATCH] Run "AStyleWhore" --- src/dbg/watch.cpp | 4 ++-- src/gui/Src/Gui/CPUInfoBox.cpp | 2 +- src/gui/Src/Gui/RegistersView.cpp | 4 ++-- src/gui/Src/Gui/XrefBrowseDialog.cpp | 2 +- src/gui/Src/Gui/ZehSymbolTable.cpp | 16 ++++++++-------- src/zydis_wrapper/zydis_wrapper.cpp | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/dbg/watch.cpp b/src/dbg/watch.cpp index c89d78de..648c9526 100644 --- a/src/dbg/watch.cpp +++ b/src/dbg/watch.cpp @@ -25,8 +25,8 @@ duint WatchExpr::getIntValue() { duint origVal = currValue; if(varType == WATCHVARTYPE::TYPE_UINT || varType == WATCHVARTYPE::TYPE_INT || - varType == WATCHVARTYPE::TYPE_FLOAT || - varType == WATCHVARTYPE::TYPE_ASCII || varType == WATCHVARTYPE::TYPE_UNICODE) + varType == WATCHVARTYPE::TYPE_FLOAT || + varType == WATCHVARTYPE::TYPE_ASCII || varType == WATCHVARTYPE::TYPE_UNICODE) { duint val; bool ok = expr.Calculate(val, varType == WATCHVARTYPE::TYPE_INT, false); diff --git a/src/gui/Src/Gui/CPUInfoBox.cpp b/src/gui/Src/Gui/CPUInfoBox.cpp index b09789a8..e9039a01 100644 --- a/src/gui/Src/Gui/CPUInfoBox.cpp +++ b/src/gui/Src/Gui/CPUInfoBox.cpp @@ -257,7 +257,7 @@ void CPUInfoBox::disasmSelectionChanged(dsint parVA) std::sort(data.begin(), data.end(), [](const XREF_RECORD * A, const XREF_RECORD * B) { - if (A->type != B->type) + if(A->type != B->type) return (A->type < B->type); return (A->addr < B->addr); diff --git a/src/gui/Src/Gui/RegistersView.cpp b/src/gui/Src/Gui/RegistersView.cpp index 272ab710..24cbcf43 100644 --- a/src/gui/Src/Gui/RegistersView.cpp +++ b/src/gui/Src/Gui/RegistersView.cpp @@ -1672,10 +1672,10 @@ static QString composeRegTextXMM(const char* value, RegistersView::SIMD_REG_DISP const float* flt_values = reinterpret_cast(value); if(bFpuRegistersLittleEndian) valueText = ToFloatString(&flt_values[0]) + ' ' + ToFloatString(&flt_values[1]) + ' ' - + ToFloatString(&flt_values[2]) + ' ' + ToFloatString(&flt_values[3]); + + ToFloatString(&flt_values[2]) + ' ' + ToFloatString(&flt_values[3]); else // Big Endian valueText = ToFloatString(&flt_values[3]) + ' ' + ToFloatString(&flt_values[2]) + ' ' - + ToFloatString(&flt_values[1]) + ' ' + ToFloatString(&flt_values[0]); + + ToFloatString(&flt_values[1]) + ' ' + ToFloatString(&flt_values[0]); } break; case RegistersView::SIMD_REG_DISP_WORD_HEX: diff --git a/src/gui/Src/Gui/XrefBrowseDialog.cpp b/src/gui/Src/Gui/XrefBrowseDialog.cpp index 23a5db84..d184a6b7 100644 --- a/src/gui/Src/Gui/XrefBrowseDialog.cpp +++ b/src/gui/Src/Gui/XrefBrowseDialog.cpp @@ -58,7 +58,7 @@ void XrefBrowseDialog::setup(duint address, QString command) std::sort(data.begin(), data.end(), [](const XREF_RECORD A, const XREF_RECORD B) { - if (A.type != B.type) + if(A.type != B.type) return (A.type < B.type); return (A.addr < B.addr); diff --git a/src/gui/Src/Gui/ZehSymbolTable.cpp b/src/gui/Src/Gui/ZehSymbolTable.cpp index 25a6b517..bb070874 100644 --- a/src/gui/Src/Gui/ZehSymbolTable.cpp +++ b/src/gui/Src/Gui/ZehSymbolTable.cpp @@ -111,15 +111,15 @@ void ZehSymbolTable::sortRows(int column, bool ascending) else return ascending ? ainfo->ordinal < binfo->ordinal : ainfo->ordinal > binfo->ordinal; case ColDecorated: - { - int result = strcmp(ainfo->decoratedSymbol, binfo->decoratedSymbol); - return ascending ? result < 0 : result > 0; - } + { + int result = strcmp(ainfo->decoratedSymbol, binfo->decoratedSymbol); + return ascending ? result < 0 : result > 0; + } case ColUndecorated: - { - int result = strcmp(ainfo->undecoratedSymbol, binfo->undecoratedSymbol); - return ascending ? result < 0 : result > 0; - } + { + int result = strcmp(ainfo->undecoratedSymbol, binfo->undecoratedSymbol); + return ascending ? result < 0 : result > 0; + } } }); } diff --git a/src/zydis_wrapper/zydis_wrapper.cpp b/src/zydis_wrapper/zydis_wrapper.cpp index c9dc5212..a241e8c6 100644 --- a/src/zydis_wrapper/zydis_wrapper.cpp +++ b/src/zydis_wrapper/zydis_wrapper.cpp @@ -873,7 +873,7 @@ void Zydis::RegInfo(uint8_t regs[ZYDIS_REGISTER_MAX_VALUE + 1]) const { case ZYDIS_OPERAND_TYPE_REGISTER: { - switch (op.action) + switch(op.action) { case ZYDIS_OPERAND_ACTION_READ: case ZYDIS_OPERAND_ACTION_CONDREAD: