Remove one unneeded initializer and add one missing initializer, as found
by CppCheck. svn path=/trunk/; revision=46700
This commit is contained in:
parent
6af6ce5ee0
commit
2f63301d1f
|
@ -166,7 +166,7 @@ void SearchFrame::enableWidgets()
|
|||
if (sf_ui_->searchLineEdit->text().isEmpty()) {
|
||||
sf_ui_->searchLineEdit->setSyntaxState(SyntaxLineEdit::Invalid);
|
||||
} else {
|
||||
guint8 *bytes = NULL;
|
||||
guint8 *bytes;
|
||||
size_t nbytes;
|
||||
bytes = convert_string_to_hex(sf_ui_->searchLineEdit->text().toUtf8().constData(), &nbytes);
|
||||
if (bytes == NULL)
|
||||
|
|
|
@ -91,7 +91,7 @@ void TimeShiftDialog::enableWidgets()
|
|||
if (ts_ui_->shiftAllTimeLineEdit->syntaxState() == SyntaxLineEdit::Valid)
|
||||
enable_ok = true;
|
||||
} else if (ts_ui_->setOneButton->isChecked()) {
|
||||
bool set_two_valid;
|
||||
bool set_two_valid = false;
|
||||
if (ts_ui_->setTwoCheckBox->isChecked()) {
|
||||
if (ts_ui_->setTwoFrameLineEdit->syntaxState() == SyntaxLineEdit::Valid &&
|
||||
ts_ui_->setTwoTimeLineEdit->syntaxState() == SyntaxLineEdit::Valid) {
|
||||
|
|
Loading…
Reference in New Issue