Skip to content

Miscellaneous code cleanup in class KHangMan

Tushar Maheshwari requested to merge tusharpm/khangman:misc_cleanup into master
  • move method calls setLevel (inline) and loadLanguageSpecialCharacters to loadLevels
  • fix nextWord logic to prevent infinite loop in certain cases
  • rearrange slotSetWordsSequence logic to reduce dynamic allocation and repeated API calls
  • move error reporting closer to error origination; switch to KMessageBox for consistent error dialog
  • remove unused method languageNames
  • minor syntax updates

Testing:

  • tested local build runs correctly with patched source

Merge request reports