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

crush: clean up whitespace removal #7157

Merged
merged 1 commit into from Jan 13, 2016
Merged

crush: clean up whitespace removal #7157

merged 1 commit into from Jan 13, 2016

Conversation

songbaisen
Copy link

Crush:Remove all the before and after space in better way.

Fixes: #14302
Signed-off-by: songbaisen song.baisen@zte.com.cn

@tchaikov
Copy link
Contributor

tchaikov commented Jan 8, 2016

@songbaisen your comment is missing the related tracker ticket number?

@songbaisen
Copy link
Author

@tchaikov Thanks very much for your reply.Use the boost function is more simple.But in this file there is none boot function used.So for the consistency may be use STL is better.Just personal opinion。

@tchaikov
Copy link
Contributor

for the record, i was suggesting "boost::trim_copy()",

But in this file there is none boot function used.

strictly speaking, that compilation unit is using boost::spirit. and i see no harm to use boost here.

Fixes: ceph#14302
Signed-off-by: songbaisen song.baisen@zte.com.cn
@songbaisen
Copy link
Author

@tchaikov Yes,your idea is very good. I have test use boost::trim_copy() is more simple than stl string.Thanks a lot to you!

liewegas added a commit that referenced this pull request Jan 13, 2016
crush: clean up whitespace removal

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
@liewegas liewegas merged commit 7babda4 into ceph:master Jan 13, 2016
@ghost ghost changed the title Crush:Remove all the before and after space in better way. crush: clean up whitespace removal Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants