Commit 0b225af8 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by David Schulz

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: default avatarDavid Schulz <david.schulz@digia.com>
parent 7bb64a58
......@@ -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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment