Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add const keyword to get_erase_size declaration
Add const to function declaration. Const objects cannot access const safe functions, a compiler error is thrown if one tries to do so. This helps ensure that the object calling the method will not be modified. This is espescially desirable in functions where all we need to do is query existing data and not make any alterations.
- Loading branch information
1 parent
6d89500
commit 9857a4d
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters