forked from qt-creator/qt-creator
Fix warnings about uninitialized variables in readonlyfilesdialog.cpp.
readonlyfilesdialog.cpp:316:29: warning: 'type' may be used uninitialized in this function. readonlyfilesdialog.cpp:283:60: warning: 'result' may be used uninitialized in this function. Change-Id: Ib2456e64d981c5afcd3ba70cc7ef0427e98b9b4e Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
committed by
David Schulz
parent
7bb64a58f4
commit
0b225af84c
@@ -248,7 +248,7 @@ int ReadOnlyFilesDialog::exec()
|
|||||||
if (QDialog::exec() != QDialog::Accepted)
|
if (QDialog::exec() != QDialog::Accepted)
|
||||||
return RO_Cancel;
|
return RO_Cancel;
|
||||||
|
|
||||||
ReadOnlyResult result;
|
ReadOnlyResult result = RO_Cancel;
|
||||||
QStringList failedToMakeWritable;
|
QStringList failedToMakeWritable;
|
||||||
foreach (ReadOnlyFilesDialogPrivate::ButtonGroupForFile buttengroup, d->buttonGroups) {
|
foreach (ReadOnlyFilesDialogPrivate::ButtonGroupForFile buttengroup, d->buttonGroups) {
|
||||||
result = static_cast<ReadOnlyResult>(buttengroup.group->checkedId());
|
result = static_cast<ReadOnlyResult>(buttengroup.group->checkedId());
|
||||||
@@ -313,7 +313,7 @@ void ReadOnlyFilesDialog::setAll(int index)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Get the selected type from the select all combo box.
|
// Get the selected type from the select all combo box.
|
||||||
ReadOnlyFilesTreeColumn type;
|
ReadOnlyFilesTreeColumn type = NumberOfColumns;
|
||||||
if (index == d->setAllIndexForOperation[MakeWritable])
|
if (index == d->setAllIndexForOperation[MakeWritable])
|
||||||
type = MakeWritable;
|
type = MakeWritable;
|
||||||
else if (index == d->setAllIndexForOperation[OpenWithVCS])
|
else if (index == d->setAllIndexForOperation[OpenWithVCS])
|
||||||
|
|||||||
Reference in New Issue
Block a user