commit | 88fb16f17cafa2e2f25cdf12852983d705b31f38 | [log] [tgz] |
---|---|---|
author | mukesh agrawal <quiche@chromium.org> | Thu Apr 24 10:37:39 2014 -0700 |
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | Sat Apr 26 00:56:49 2014 +0000 |
tree | 1e26988a8ee061e42b8f6838fbd3cf41141e357d | |
parent | 836a937c9f3a2397e69a2edc0b4bc15ec2401936 [diff] |
shill: dhcp: make kDHCPCDPathFormatLease a compile-time const Switch kDHCPCDPathFormatLease from a |const char []| to a |constexpr char []|. This guarantees that the constant is a compile-time const in other modules. The benefit of making this a compile-time const for other modules is that we can re-enable the format-nonliteral warning, without tripping up on the use of kDHCPCDPathFormatLease as an argument to base::StringPrintf in dhcp_config.cc The actual re-enabling of format-nonliteral will come in a later CL, after I've fixed other places that cause the warning. BUG=chromium:293668 TEST=unit tests Change-Id: I9ad4f93600df91269644a8ed68503e07cacd7bbc Reviewed-on: https://chromium-review.googlesource.com/197038 Tested-by: mukesh agrawal <quiche@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: mukesh agrawal <quiche@chromium.org>