mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Use const return values for string cache
This is a prerequisite for being able to return "" (which is const) and none of the returned values should ever be modified.
This commit is contained in:
@@ -613,7 +613,7 @@ qof_book_get_collection (const QofBook *book, QofIdType entity_type)
|
||||
col = qof_collection_new (entity_type);
|
||||
g_hash_table_insert(
|
||||
book->hash_of_collections,
|
||||
qof_string_cache_insert(entity_type), col);
|
||||
(gpointer)qof_string_cache_insert(entity_type), col);
|
||||
}
|
||||
return col;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user