mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
recurrencePeriodTypeToString and recurrenceWeekendAdjustToString g_strdup only when necessary
... for sql use only. xml use assumes they return a const char*.
This commit is contained in:
@@ -155,9 +155,9 @@ void recurrenceListNextInstance(const GList *r, const GDate *refDate,
|
||||
GDate *nextDate);
|
||||
|
||||
/* These four functions are only for xml storage, not user presentation. */
|
||||
gchar *recurrencePeriodTypeToString(PeriodType pt);
|
||||
const gchar *recurrencePeriodTypeToString(PeriodType pt);
|
||||
PeriodType recurrencePeriodTypeFromString(const gchar *str);
|
||||
gchar *recurrenceWeekendAdjustToString(WeekendAdjust wadj);
|
||||
const gchar *recurrenceWeekendAdjustToString(WeekendAdjust wadj);
|
||||
WeekendAdjust recurrenceWeekendAdjustFromString(const gchar *str);
|
||||
|
||||
/* For debugging. Caller owns the returned string. Not intl. */
|
||||
|
||||
Reference in New Issue
Block a user