File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ Local<Value> McClass::runcmdEx(const Arguments& args) {
200200 if (command) {
201201 CommandOutput output (CommandOutputType::AllOutput);
202202 command->run (origin, output);
203- for (auto msg : output.getMessages ()) {
203+ for (auto & msg : output.getMessages ()) {
204204 std::string temp;
205205 getI18n ().getCurrentLanguage ()->get (msg.getMessageId (), temp, msg.getParams ());
206206 outputStr += temp.append (" \n " );
Original file line number Diff line number Diff line change @@ -1357,7 +1357,7 @@ Local<Value> EntityClass::getAllTags(const Arguments& args) {
13571357 if (!entity) return Local<Value>();
13581358
13591359 Local<Array> arr = Array::newArray ();
1360- for (auto tag : entity->getTags ()) {
1360+ for (auto & tag : entity->getTags ()) {
13611361 arr.add (String::newString (tag));
13621362 }
13631363 return arr;
Original file line number Diff line number Diff line change @@ -2970,7 +2970,7 @@ Local<Value> PlayerClass::getAllTags(const Arguments& args) {
29702970 if (!player) return Local<Value>();
29712971
29722972 Local<Array> arr = Array::newArray ();
2973- for (auto tag : player->getTags ()) {
2973+ for (auto & tag : player->getTags ()) {
29742974 arr.add (String::newString (tag));
29752975 }
29762976 return arr;
You can’t perform that action at this time.
0 commit comments