Cleanup: Use Map instead of GHash for memfile writing #117141

Merged
Hans Goudey merged 4 commits from HooglyBoogly/blender:cleanup-undofile-cpp-map into main 2024-01-16 19:41:39 +01:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 33bdaa400a - Show all commits

View File

@ -56,7 +56,7 @@ void BLO_memfile_merge(MemFile *first, MemFile *second)
blender::Map<const char *, MemFileChunk *> buffer_to_second_memchunk;
/* First, detect all memchunks in second memfile that are not owned by it. */
LISTBASE_FOREACH (MemFileChunk *, sc, &first->chunks) {
LISTBASE_FOREACH (MemFileChunk *, sc, &second->chunks) {
if (sc->is_identical) {
buffer_to_second_memchunk.add(sc->buf, sc);
}