]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/config: change the element type of lists to "const char*" 16482/head
authorKefu Chai <kchai@redhat.com>
Fri, 21 Jul 2017 13:03:41 +0000 (21:03 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 26 Jul 2017 16:09:52 +0000 (00:09 +0800)
commita7e818f59fed84b8b7db8019a87968cc2eff5ec6
tree4f8566d3fdecb73c86bf13aa3f33600f3cc0267b
parent26941ea40cccfcb5a0b544f7d3971b551e463362
common/config: change the element type of lists to "const char*"

there lists holds constant string literals. and they are not changeable
at runtime. so make std::list<const char*> for smaller memory foot
print.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/options.cc
src/common/options.h