Fix warning: ‘op’ may be used uninitialized in this function

../../../trunk/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp: In
member function ‘void IdDetailsDialog::modifyReputation()’:
../../../trunk/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp:
327:30: warning: ‘op’ may be used uninitialized in this function [-
Wmaybe-uninitialized]
  327 |  rsReputations->setOwnOpinion(id,op);
      |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
This commit is contained in:
Phenom 2020-05-09 14:36:06 +02:00
parent e3846f981c
commit 546e87fd39

View File

@ -322,13 +322,13 @@ void IdDetailsDialog::modifyReputation()
case 2: op = RsOpinion::POSITIVE; break;
default:
std::cerr << "Wrong value from opinion combobox. Bug??" << std::endl;
break;
return;
}
rsReputations->setOwnOpinion(id,op);
// trigger refresh when finished.
// basic / anstype are not needed.
loadIdentity();
loadIdentity();
return;
}