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)
|
||||
return RO_Cancel;
|
||||
|
||||
ReadOnlyResult result;
|
||||
ReadOnlyResult result = RO_Cancel;
|
||||
QStringList failedToMakeWritable;
|
||||
foreach (ReadOnlyFilesDialogPrivate::ButtonGroupForFile buttengroup, d->buttonGroups) {
|
||||
result = static_cast<ReadOnlyResult>(buttengroup.group->checkedId());
|
||||
@@ -313,7 +313,7 @@ void ReadOnlyFilesDialog::setAll(int index)
|
||||
return;
|
||||
|
||||
// Get the selected type from the select all combo box.
|
||||
ReadOnlyFilesTreeColumn type;
|
||||
ReadOnlyFilesTreeColumn type = NumberOfColumns;
|
||||
if (index == d->setAllIndexForOperation[MakeWritable])
|
||||
type = MakeWritable;
|
||||
else if (index == d->setAllIndexForOperation[OpenWithVCS])
|
||||
|
||||
Reference in New Issue
Block a user