-
Notifications
You must be signed in to change notification settings - Fork 144
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
Refactor bmqu::AlignedPrinter to accept vector of strings #564
Comments
Hi all. I have started working on this. This is my first time ever trying to contribute to an open-source library. Please forgive my ignorance if there is any issue with commenting here. Just to make sure, I have to complete the checklist above with five items, then follow the steps on Contributing page? |
Hi Ari, that is correct. It's not enough to only modify
Yes. The most common problem on new contributions is DCO check. You need to ensure that you add DCO signature to all of your commits with |
Thanks for getting back to me @678098 and also your response. Please see below for a breakdown, and to doublecheck/confirm before next steps.
src/groups/mqb/mqbs/mqbs_filestoreprotocolprinter.cpp
src/applications/bmqtool/m_bmqtool_storageinspector.cpp
src/applications/bmqstoragetool/m_bmqstoragetool_searchresult.cpp
src/applications/bmqstoragetool/m_bmqstoragetool_recordprinter.cpp
|
The breakdown seems reasonable, however, there might be other places requiring changes. It's easier to solve this step by step iteratively and check that the PR with changes builds with our CI |
Is your feature request related to a problem?
bmqu::AlignedPrinter
class has some problems:bsl::vector<const char*>
argument which is strange. The conventional way is to passbsl::vector<bsl::string>
.const char*
length,bsl::strlen
is used.blazingmq/src/groups/bmq/bmqu/bmqu_alignedprinter.h
Line 92 in e19ff33
Describe the solution you'd like
Refactor
bmqu::AlignedPrinter
, so:bmqu::AlignedPrinter
constructor expectsbsl::string
, notconst char*
bmqu::AlignedPrinter
also stores these strings as aconst bsl::vector<bsl::string>
field (might be a pointer, might be a reference)d_fields_p
is not NULL in constructorAlignedPrinter::AlignedPrinter
or initialize this field as a referenceAlternatives you considered
No response
The text was updated successfully, but these errors were encountered: