From 5e6c401557744fe5f9765471605cc793939fee1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 17 Mar 2022 18:50:52 +0100 Subject: Added controlled conversions to char* instead of automatic ascii conversions. The definition of -UTQT_NO_ASCII_CAST is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kmymoney2/kmymoneyutils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kmymoney2/kmymoneyutils.cpp') diff --git a/kmymoney2/kmymoneyutils.cpp b/kmymoney2/kmymoneyutils.cpp index 92ac362..e58b8de 100644 --- a/kmymoney2/kmymoneyutils.cpp +++ b/kmymoney2/kmymoneyutils.cpp @@ -120,27 +120,27 @@ MyMoneySecurity::eSECURITYTYPE KMyMoneyUtils::stringToSecurity(const TQString& t const TQString KMyMoneyUtils::securityTypeToString(const MyMoneySecurity::eSECURITYTYPE securityType) { - return i18n(MyMoneySecurity::securityTypeToString(securityType)); + return i18n(MyMoneySecurity::securityTypeToString(securityType).utf8()); } const TQString KMyMoneyUtils::occurenceToString(const MyMoneySchedule::occurenceE occurence) { - return i18n(MyMoneySchedule::occurenceToString(occurence)); + return i18n(MyMoneySchedule::occurenceToString(occurence).utf8()); } const TQString KMyMoneyUtils::paymentMethodToString(MyMoneySchedule::paymentTypeE paymentType) { - return i18n(MyMoneySchedule::paymentMethodToString(paymentType)); + return i18n(MyMoneySchedule::paymentMethodToString(paymentType).utf8()); } const TQString KMyMoneyUtils::weekendOptionToString(MyMoneySchedule::weekendOptionE weekendOption) { - return i18n(MyMoneySchedule::weekendOptionToString(weekendOption)); + return i18n(MyMoneySchedule::weekendOptionToString(weekendOption).utf8()); } const TQString KMyMoneyUtils::scheduleTypeToString(MyMoneySchedule::typeE type) { - return i18n(MyMoneySchedule::scheduleTypeToString(type)); + return i18n(MyMoneySchedule::scheduleTypeToString(type).utf8()); } KGuiItem KMyMoneyUtils::scheduleNewGuiItem(void) -- cgit v1.2.1