Files
VVVVVV/desktop_version/src
Misa acfa085fd1 Remove reference from customlevelclass::load arg
For some reason, originally, this function mutated the std::string
passed into it by reference. So calling the function could potentially
mutate whatever got passed in, and callers potentially could have relied
on that behavior.

Now that the surrounding callsites have all been cleaned up, though
(especially scriptclass::startgamemode), it's clear that it's only used
in two places: Loading the level in the editor, and loading the level in
live gameplay. In both cases, the passed-in string isn't used ever again
afterwards.

So, it's safe to delete the mutable reference without any undesirable
effects, making the code cleaner and easier to understand. The function
now mutates a copy instead of mutating whatever the caller has.
2023-03-16 21:09:41 -07:00
..
2023-02-21 12:28:57 -08:00
2021-12-18 00:01:32 -08:00
2021-09-27 10:32:23 -07:00
2023-03-05 11:33:16 -08:00
2022-12-31 20:04:56 -08:00
2022-03-13 23:50:37 -07:00
2023-03-02 22:58:12 -08:00
2023-03-02 22:58:12 -08:00
2022-08-23 00:00:39 -07:00
2021-12-25 23:14:12 -08:00
2022-12-31 20:04:56 -08:00
2021-09-24 16:37:27 -07:00
2022-12-29 16:13:54 -08:00
2023-02-27 23:00:41 -08:00
2023-02-27 23:00:41 -08:00
2022-11-14 19:40:23 -08:00
2020-11-04 12:06:57 -05:00
2022-11-14 13:14:25 -08:00