mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-28 12:57:03 -08:00
Fixes for minor issues found by static analysis
Mostly style issues. I used the following tools to find most of these: - lgtm.com - clang-tidy - cpplint - cppcheck
This commit is contained in:
1 parent
c663b5d5fc
commit
f62e0534a2
6 files changed
+18
-24
No files matched your search
@@ -98,10 +98,10 @@ MessageBox::Button MessageBox::messageBox(QWidget* parent,
|
||||
|
||||
for (uint64_t b = First; b <= Last; b <<= 1) {
|
||||
if (b & buttons) {
|
||||
QString text = m_buttonDefs[static_cast<Button>(b)].first;
|
||||
QString buttonText = m_buttonDefs[static_cast<Button>(b)].first;
|
||||
QMessageBox::ButtonRole role = m_buttonDefs[static_cast<Button>(b)].second;
|
||||
|
||||
auto buttonPtr = msgBox.addButton(text, role);
|
||||
auto buttonPtr = msgBox.addButton(buttonText, role);
|
||||
m_addedButtonLookup.insert(buttonPtr, static_cast<Button>(b));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user