Skip to content

Refactor card data handling for clarity and efficiency#763

Merged
salix5 merged 1 commit into
masterfrom
patch5
Jun 14, 2025
Merged

Refactor card data handling for clarity and efficiency#763
salix5 merged 1 commit into
masterfrom
patch5

Conversation

@salix5

@salix5 salix5 commented Jun 14, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@salix5 salix5 requested a review from Copilot June 14, 2025 10:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request refactors card data handling to improve clarity and efficiency in resetting object state and calculating set codes. Key changes include replacing manual field resets with a memset call in card_data::clear(), updating bit masking in is_setcode and check_setcode, and using memset for zeroing an array segment.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
card_data.h Refactored clear() and is_setcode methods to simplify resetting and bitmask logic.
card.cpp Updated check_setcode function to use const qualifiers and simplified bitwise operations.

Comment thread card_data.h
@salix5 salix5 merged commit d0531fd into master Jun 14, 2025
2 checks passed
@salix5 salix5 deleted the patch5 branch June 14, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants