1
0
Fork 0

GUI: fix Sonar issues

This commit is contained in:
Duncan Ogilvie 2017-10-22 17:07:45 +02:00
parent c102670c3f
commit ecbea6d9d8
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
4 changed files with 3 additions and 5 deletions

View File

@ -8,7 +8,7 @@ struct cbSymbolEnumCtx
{ {
const SYMBOLMODULEINFO* module; const SYMBOLMODULEINFO* module;
std::vector<SymbolInfo>* symbols; std::vector<SymbolInfo>* symbols;
} ; };
static void cbSymbolEnum(SYMBOLINFO* info, void* user) static void cbSymbolEnum(SYMBOLINFO* info, void* user)
{ {

View File

@ -279,7 +279,6 @@ void StdTable::expandDown()
if(wRowIndex > mSelection.toIndex) if(wRowIndex > mSelection.toIndex)
{ {
mSelection.fromIndex = mSelection.fromIndex;
mSelection.firstSelectedIndex = wRowIndex; mSelection.firstSelectedIndex = wRowIndex;
mSelection.toIndex = wRowIndex; mSelection.toIndex = wRowIndex;
@ -288,7 +287,6 @@ void StdTable::expandDown()
{ {
mSelection.fromIndex = wRowIndex; mSelection.fromIndex = wRowIndex;
mSelection.firstSelectedIndex = wRowIndex; mSelection.firstSelectedIndex = wRowIndex;
mSelection.toIndex = mSelection.toIndex ;
} }

View File

@ -101,7 +101,7 @@ QString formatLoop(const QVector<byte_t>* bytes, int itemsPerLine, QString(*form
{ {
QString data; QString data;
int count = bytes->size() / sizeof(T); int count = bytes->size() / sizeof(T);
for(int i = 0; i < count ; i++) for(int i = 0; i < count; i++)
{ {
if(i) if(i)
{ {

View File

@ -108,7 +108,7 @@ private:
union union
{ {
QAction* action; QAction* action;
QMenu* menu ; QMenu* menu;
MenuBuilder* builder; MenuBuilder* builder;
}; };
}; };