• R/O
  • SSH
  • HTTPS

eirrepo: Commit


Commit MetaInfo

Revision456 (tree)
Time2022-02-25 02:19:20
Authorquiret

Log Message

- improved the default-replacement logic inside replaceInContainer

Change Summary

Incremental Difference

--- common/sdk/UniqueIterate.h (revision 455)
+++ common/sdk/UniqueIterate.h (revision 456)
@@ -453,7 +453,7 @@
453453 {
454454 if ( findval != itemType() && container == findval )
455455 {
456- container = itemType();
456+ container = {};
457457 }
458458 }
459459 else
@@ -460,11 +460,11 @@
460460 {
461461 if ( findval != itemType() )
462462 {
463- for ( itemType& ival : container )
463+ for ( auto& ival : container )
464464 {
465465 if ( ival == findval )
466466 {
467- ival = itemType();
467+ ival = {};
468468 }
469469 }
470470 }
Show on old repository browser