-
Notifications
You must be signed in to change notification settings - Fork 248
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
Deduplicate code in SequentialCompressionReader #372
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - please double check whether some attributes in sequential_reader.hpp
could be private?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Pending Green CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with green CI
{ | ||
storage_.reset(); | ||
} | ||
{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
= default
?
private: | ||
std::shared_ptr<SerializationFormatConverterFactoryInterface> converter_factory_{}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from all the things which moved into the protected section, why not the converter_factory
? I am not proposing otherwise, just asking for the rationale.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every other previously-private member is currently referenced directly in the SequentialCompressionReader subclass. We can probably clean it up a little so that more can be private, but my intention with this was to go for the minimum necessary set of visibility increase. Which happened to just be everything except this
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
0affc95
to
f2fea42
Compare
All CI warnings are from upstream packages - the test failures are the persistent failures on Windows. The Action CI failure is also recurring on all PRs right now. I'm going to merge this PR and then focus on getting the Action CI green before adding anything new. |
Change the SequentialReader interfaces from
private
toprotected
. Then, delete all identical code fromSequentialCompressionReader
.I'm about to add a new
BaseReaderInterface
function signature and don't want to duplicate it.The existing test suite on these classes should cover the change.
Depends on #373
Starts replacing #371
In support of work towards #125
Signed-off-by: Emerson Knapp emerson.b.knapp@gmail.com