Simplify GString usage
authorArkadiy Illarionov <qarkai@gmail.com>
Sun, 20 Aug 2023 16:00:40 +0000 (19:00 +0300)
committerColin Clark <colin.clark@cclark.uk>
Sun, 20 Aug 2023 17:01:11 +0000 (18:01 +0100)
commit495553c8ad870ff54a9ee6cfd8f02883ae0dedcc
tree6f8dfbbc8297e76682f1d9915b08fbf46c028229
parenta1d33ebddb3078cf761696fea2b9a786f2cd6d48
Simplify GString usage

- Replace g_string_append_printf with g_string_append
  if format string doesn't contain format specifiers.
- Use g_string_append_printf instead of g_string_append(string, g_strdup_printf).
- Merge g_string_new and following g_string_append.
- Remove unnecessary memory allocations and fix memleaks.
src/bar-gps.cc
src/bar-keywords.cc
src/collect-dlg.cc
src/collect.cc
src/dupe.cc
src/image-load-collection.cc
src/layout-util.cc
src/preferences.cc
src/rcfile.cc
src/remote.cc
src/utilops.cc