Fix standard conformance issues
This commit is contained in:
parent
c4cc5a5f86
commit
33024f5672
|
|
@ -271,7 +271,7 @@ Instruction_t QBeaEngine::DecodeDataAt(byte_t* data, duint size, duint origBase,
|
|||
//tokenize
|
||||
CapstoneTokenizer::InstructionToken cap;
|
||||
|
||||
auto & infoIter = dataInstMap.find(type);
|
||||
auto infoIter = dataInstMap.find(type);
|
||||
if(infoIter == dataInstMap.end())
|
||||
infoIter = dataInstMap.find(enc_byte);
|
||||
|
||||
|
|
|
|||
|
|
@ -2065,7 +2065,7 @@ void MainWindow::onMenuCustomized()
|
|||
QMenu* currentMenu = menus[i];
|
||||
QMenu* moreCommands = nullptr;
|
||||
bool moreCommandsUsed = false;
|
||||
QList<QAction*> & list = currentMenu->actions();
|
||||
QList<QAction*> list = currentMenu->actions();
|
||||
moreCommands = list.last()->menu();
|
||||
if(moreCommands && moreCommands->title().compare(tr("More Commands")) == 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ void MHTabWidget::AttachTab(QWidget* parent)
|
|||
}
|
||||
|
||||
// Convert a tab to an external window
|
||||
void MHTabWidget::DetachTab(int index, QPoint & dropPoint)
|
||||
void MHTabWidget::DetachTab(int index, const QPoint & dropPoint)
|
||||
{
|
||||
Q_UNUSED(dropPoint);
|
||||
// Create the window
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ signals:
|
|||
|
||||
public slots:
|
||||
void AttachTab(QWidget* parent);
|
||||
void DetachTab(int index, QPoint &);
|
||||
void DetachTab(int index, const QPoint &);
|
||||
void MoveTab(int fromIndex, int toIndex);
|
||||
void DeleteTab(int index);
|
||||
void tabMoved(int from, int to);
|
||||
|
|
|
|||
|
|
@ -24,6 +24,18 @@ QByteArray & ByteReverse(QByteArray & array)
|
|||
return array;
|
||||
}
|
||||
|
||||
QByteArray ByteReverse(QByteArray && array)
|
||||
{
|
||||
int length = array.length();
|
||||
for(int i = 0; i < length / 2; i++)
|
||||
{
|
||||
char temp = array[i];
|
||||
array[i] = array[length - i - 1];
|
||||
array[length - i - 1] = temp;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
bool SimpleInputBox(QWidget* parent, const QString & title, QString defaultValue, QString & output, const QString & placeholderText, QIcon* icon)
|
||||
{
|
||||
LineEditDialog mEdit(parent);
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ class QByteArray;
|
|||
|
||||
void SetApplicationIcon(WId winId);
|
||||
QByteArray & ByteReverse(QByteArray & array);
|
||||
QByteArray ByteReverse(QByteArray && array);
|
||||
bool SimpleInputBox(QWidget* parent, const QString & title, QString defaultValue, QString & output, const QString & placeholderText, QIcon* icon = nullptr);
|
||||
bool SimpleChoiceBox(QWidget* parent, const QString & title, QString defaultValue, const QStringList & choices, QString & output, bool editable, const QString & placeholderText, QIcon* icon = nullptr, int minimumContentsLength = -1);
|
||||
void SimpleErrorBox(QWidget* parent, const QString & title, const QString & text);
|
||||
|
|
|
|||
Loading…
Reference in New Issue