Skip to content

Commit

Permalink
Added missing const keyword to variable in CheckPercent() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvitaly committed Jun 11, 2024
1 parent 1eed57a commit 76f2f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/zswapobject/zswapobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
bool ZSwapObject::CheckPercent(const std::string& Value)
{
if (Value.empty()) return true;
int ValueInt = std::stoi(Value);
const int ValueInt = std::stoi(Value);
return (ValueInt < 0) || (ValueInt > 100);
}

Expand Down

0 comments on commit 76f2f74

Please sign in to comment.