!112 use reference instead of value to avoid copy

Merge pull request !112 from 陈杰/chenjie16
This commit is contained in:
openharmony_ci
2022-03-17 11:37:25 +00:00
committed by Gitee
@@ -55,7 +55,7 @@ public:
}
};
struct BundleInfoCmp {
bool operator() (const BundlePriorityInfo p1, const BundlePriorityInfo p2)
bool operator() (const BundlePriorityInfo &p1, const BundlePriorityInfo &p2)
{
if (p1.uid_ == p2.uid_) {
// remove duplicate BundlePriorityInfo according to uid_