Skip to content

Commit

Permalink
less copying, remove unnecessary call
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Dec 26, 2023
1 parent 8ac8e59 commit 1cdb714
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/ebus/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,7 @@ bool SimpleStringCondition::checkValue(const Message* message, const string& fie

void SimpleStringCondition::dumpValuesJson(ostream* output) const {
bool first = true;
for (const auto value : m_values) {
for (const auto& value : m_values) {
if (!first) {
*output << ",";
}
Expand Down Expand Up @@ -2806,7 +2806,6 @@ void MessageMap::clear() {
m_loadedFileInfos.clear();
// clear poll messages
while (!m_pollMessages.empty()) {
m_pollMessages.top();
m_pollMessages.pop();
}
// free message instances by name
Expand Down

0 comments on commit 1cdb714

Please sign in to comment.