RosettaStone icon indicating copy to clipboard operation
RosettaStone copied to clipboard

Refactor code

Open utilForever opened this issue 3 years ago • 0 comments

  • Make simple logic code by cleaning up complex code
  • Add attribute '[[maybe_unused]]' and '[[nodiscard]]'
  • Add keyword 'const' to variable and function
  • Delete unnecessary 'nullptr' check
  • Delete unused '#include' header files
  • Add 'switch' statement's rest case
  • Replace 'switch' statement with 'if'
  • Move code to initialize variables to member initializer
  • Fix integer overflow issue

utilForever avatar Nov 13 '21 07:11 utilForever