mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
e3846f981c
commit
546e87fd39
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user