Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull out separate functions for reading files in SetupModel.cpp #426

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ZedThree
Copy link

Minimal changes besides pulling out the bits of the code for reading the data files into separate functions. Reduced scope of some local variables, added constexpr auto binary_density_file_magic_number as it's used in a couple of places.

I did also apply clang-format to the new functions using the config file in #397

Copy link
Collaborator

@matt-gretton-dann matt-gretton-dann left a comment

Choose a reason for hiding this comment

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

A couple of small changes (which I acknowledge include things that increase the scope but I believe are important).

A future PR should change the types in the BinFile format to be fixed type sizes.

src/SetupModel.cpp Outdated Show resolved Hide resolved
src/SetupModel.cpp Show resolved Hide resolved
src/SetupModel.cpp Outdated Show resolved Hide resolved
@ZedThree ZedThree force-pushed the separate_file_read_functions branch from 0a80255 to 20bfa4f Compare June 25, 2020 17:04
@ZedThree
Copy link
Author

Rebased to resolve conflicts

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.

None yet

2 participants