diff options
author | Steven Moreland <smoreland@google.com> | 2017-09-19 08:45:53 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2017-09-19 08:45:53 -0700 |
commit | 8f52c8a4d941cf360b1292de8addd92c16a245b6 (patch) | |
tree | a5380e09c0ce03b7b66da3a8199f2184da793f1d /Coordinator.cpp | |
parent | 207a9fe818224d9942edb7f680e9c01b7fe7e3fc (diff) | |
download | hidl-8f52c8a4d941cf360b1292de8addd92c16a245b6.tar.gz |
Followup change to Coordinator::getPackagePath
- Fix comment.
- Simplify logic.
Test: manual
Bug: 64579316
Change-Id: I236394f23c6d0d49bdb708b8cee69abfde45ebdf
Diffstat (limited to 'Coordinator.cpp')
-rw-r--r-- | Coordinator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Coordinator.cpp b/Coordinator.cpp index f11cb6c5..8f87e7be 100644 --- a/Coordinator.cpp +++ b/Coordinator.cpp @@ -244,8 +244,8 @@ std::string Coordinator::getPackagePath( const std::string prefix = *it; // Given FQName of "android.hardware.nfc.test@1.0::IFoo" and a prefix - // "android.hardware", the suffix is "nfc". - const std::string suffix = StringHelper::LTrim(fqName.package().substr(prefix.length()), "."); + // "android.hardware", the suffix is "nfc.test". + const std::string suffix = StringHelper::LTrim(fqName.package(), prefix + "."); std::vector<std::string> suffixComponents; StringHelper::SplitString(suffix, '.', &suffixComponents); |