Skip to content

Make AppModel.h self-contained by adding missing standard headers - #10

Merged
sromic1990 merged 2 commits into
feature/core/1-handling-file-managementfrom
copilot/sub-pr-9
Mar 21, 2026
Merged

sromic1990 merged 2 commits into
feature/core/1-handling-file-managementfrom
copilot/sub-pr-9

Conversation

Copilot AI commented Mar 21, 2026 •

Copy link
Copy Markdown
Contributor

AppModel.h used std::string, std::min, and std::memcpy while relying on transitive includes from DocumentQueue.h to satisfy them — fragile under -Wall -Wextra -Werror -Wpedantic builds where missing direct includes can break compilation.

Changes

  • src/AppModel.h: Added explicit includes for the three standard headers the file directly depends on:
    #include <algorithm>   // std::min
    #include <cstring>     // std::memcpy
    #include <string>      // std::string

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] [WIP] Address feedback on file management handling in core feature PR Make AppModel.h self-contained by adding missing standard headers Mar 21, 2026
Copilot AI requested a review from sromic1990 March 21, 2026 23:04
@sromic1990
sromic1990 marked this pull request as ready for review March 21, 2026 23:11

@sromic1990 sromic1990 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM

@sromic1990
sromic1990 merged commit 374671b into feature/core/1-handling-file-management Mar 21, 2026
@sromic1990
sromic1990 deleted the copilot/sub-pr-9 branch March 21, 2026 23:37
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