]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common: introduce std::optional-returning variants of cmd_getval().
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 19 May 2021 12:28:31 +0000 (12:28 +0000)
committerKefu Chai <kchai@redhat.com>
Sat, 22 May 2021 16:31:09 +0000 (00:31 +0800)
commit5cb65dc74dc3e3e6f75745666a687371ce1230ef
tree46ffd31a646914852aa6cf5a73716f6fcfecab30
parente29f1a5ec16c00f70c7b505769fbefe98db03d1b
common: introduce std::optional-returning variants of cmd_getval().

Using an output paramter instead of returning is confusing but
common in pre-C++11 code. Let's modernize `cmd_getval()`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/common/cmdparse.h