Changed the postincrement operator to a preincrement operator for the iterator in the for loops in src/wallet/rpcdump.cpp and src/wallet/wallet.cpp.
For integers the compiler does the optimisation automatically. In this case an iterator is used, so this changes avoid creating an unnecessary temporary copy of the iterator.
Comments on this PR suggest the use of a preincrement for optimisation.
Targeted only the files in src/wallet to not overcomplicate things and to keep this changes isolated to the scr/wallet files, so it can be easier to review and test.
I look forward to your opinions about this.
Thank you!