diff options
author | Matt Spinler <spinler@us.ibm.com> | 2018-02-26 09:14:31 -0600 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-02-27 18:36:05 +0000 |
commit | 1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96 (patch) | |
tree | 119da3b2d0af7e31a42dc29f8ec7dc79a85f9af3 /src/propertywatch.cpp | |
parent | 3c5318d843651dd18a6b8b0da67e3aaef810ca91 (diff) | |
download | phosphor-dbus-monitor-1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96.tar.gz phosphor-dbus-monitor-1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96.zip |
Add constants for tuple fields
Add constants for use with std::get.
Tested: Run unit tests
Change-Id: Ic09c13feeda69d61c98f63d227cae8f08d1bf50e
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'src/propertywatch.cpp')
-rw-r--r-- | src/propertywatch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/propertywatch.cpp b/src/propertywatch.cpp index defde78..63a2c31 100644 --- a/src/propertywatch.cpp +++ b/src/propertywatch.cpp @@ -36,9 +36,9 @@ MappedPropertyIndex convert(const PropertyIndex& index) for (const auto& i : index) { - const auto& path = std::get<0>(i.first); - const auto& interface = std::get<1>(i.first); - const auto& property = std::get<2>(i.first); + const auto& path = std::get<pathIndex>(i.first); + const auto& interface = std::get<interfaceIndex>(i.first); + const auto& property = std::get<propertyIndex>(i.first); m[path][interface].push_back(property); } |