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

DataReader: Minor API changes #6460

Merged
merged 5 commits into from Mar 19, 2018
Merged

Conversation

lioncash
Copy link
Member

Minor little changes to the DataReader class. Each commit should be fairly self-contained.

These don't modify class state, so they can be const qualified.
Allows the default constructor to be defaulted and ensures the default
values are associated with the member variables directly.

Also corrects a prefixed underscore in the two parameter constructor.
It's questionable to not return a reference to the instance being
assigned to. It's also quite misleading in terms of expected behavior
relative to everything else. This fixes it to make it consistent with
other classes.
This wouldn't be much of a data reader if it can't access the
read-only data pointer in read-only contexts. Especially if it
can get a writable equivalent in contexts that aren't read-only.
@degasus
Copy link
Member

degasus commented Mar 19, 2018

LGTM

@leoetlino leoetlino merged commit f335790 into dolphin-emu:master Mar 19, 2018
@lioncash lioncash deleted the datareader branch March 19, 2018 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants