Reduce usage of [[nodiscard]] attributes (#3952)
This commit is contained in:
commit
e043242a8e
65 changed files with 329 additions and 327 deletions
|
@ -164,14 +164,14 @@ struct IndexedPack {
|
|||
ExtraPackData extraData;
|
||||
|
||||
// For internal use, not provided by APIs
|
||||
[[nodiscard]] bool isVersionSelected(int index) const
|
||||
bool isVersionSelected(int index) const
|
||||
{
|
||||
if (!versionsLoaded)
|
||||
return false;
|
||||
|
||||
return versions.at(index).is_currently_selected;
|
||||
}
|
||||
[[nodiscard]] bool isAnyVersionSelected() const
|
||||
bool isAnyVersionSelected() const
|
||||
{
|
||||
if (!versionsLoaded)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue