195 + QString senderId = mMessages[messageId]["senderId"].toString(); 196 + QString accountId = mMessages[messageId]["accountId"].toString(); 197 + QStringList participantIds = mMessages[messageId]["participantIds"].toStringList();
Instead of looking up for the mMessages[messageId] multiple times, maybe you could cache the result and reuse it instead.
« Back to merge proposal
195 + QString senderId = mMessages[ messageId] ["senderId" ].toString( ); messageId] ["accountId" ].toString( ); messageId] ["participantId s"].toStringLis t();
196 + QString accountId = mMessages[
197 + QStringList participantIds = mMessages[
Instead of looking up for the mMessages[ messageId] multiple times, maybe you could cache the result and reuse it instead.