diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-08-16 20:24:39 +0200 |
---|---|---|
committer | gregory guy <gregory-tde@laposte.net> | 2021-08-17 11:13:24 +0200 |
commit | c9792a21add7beeb698ae43d71580e2943dac395 (patch) | |
tree | 2b16bbd88d0072d2cbd797a6f376d9ca45034cdf /src | |
parent | 2fe98299baff89c26b594704ea6baf6bd8336346 (diff) | |
download | qalculate-tde-c9792a21add7beeb698ae43d71580e2943dac395.tar.gz qalculate-tde-c9792a21add7beeb698ae43d71580e2943dac395.zip |
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src')
-rw-r--r-- | src/preferences.cpp | 2 | ||||
-rw-r--r-- | src/qalculateexportcsvdialog.cpp | 2 | ||||
-rw-r--r-- | src/qalculatefunctionsdialog.cpp | 2 | ||||
-rw-r--r-- | src/qalculateresultdisplay.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/preferences.cpp b/src/preferences.cpp index e75ee66..c7d18f9 100644 --- a/src/preferences.cpp +++ b/src/preferences.cpp @@ -668,7 +668,7 @@ void save_preferences(bool mode) { filename += "qalculate-tde.cfg"; file = fopen(filename.c_str(), "w+"); if(file == NULL) { - fprintf(stderr, i18n("Couldn't write preferences to\n%s"), filename.c_str()); + fprintf(stderr, i18n("Couldn't write preferences to\n%s").local8Bit(), filename.c_str()); return; } fprintf(file, "\n[General]\n"); diff --git a/src/qalculateexportcsvdialog.cpp b/src/qalculateexportcsvdialog.cpp index a224ee8..7a2ffc6 100644 --- a/src/qalculateexportcsvdialog.cpp +++ b/src/qalculateexportcsvdialog.cpp @@ -152,7 +152,7 @@ void QalculateExportCSVDialog::slotOk() { } if(!CALCULATOR->exportCSV(*matrix_struct, str.ascii(), delimiter)) { TQString error_str; - error_str.sprintf(i18n("Could not export to file \n%s"), str.ascii()); + error_str.sprintf(i18n("Could not export to file \n%s").utf8(), str.ascii()); KMessageBox::error(this, error_str); reject(); } diff --git a/src/qalculatefunctionsdialog.cpp b/src/qalculatefunctionsdialog.cpp index d60c9be..7ea9e90 100644 --- a/src/qalculatefunctionsdialog.cpp +++ b/src/qalculatefunctionsdialog.cpp @@ -366,7 +366,7 @@ void QalculateFunctionsDialog::functionSelected() { str += "<br>"; if(f->subtype() == SUBTYPE_DATA_SET) { str += "<br>"; - str2.sprintf(i18n("Retrieves data from the %s data set for a given object and property. If \"info\" is typed as property, a dialog window will pop up with all properties of the object."), f->title().c_str()); + str2.sprintf(i18n("Retrieves data from the %s data set for a given object and property. If \"info\" is typed as property, a dialog window will pop up with all properties of the object.").utf8(), f->title().c_str()); str2.replace("<", "<"); str2.replace(">", ">"); str += str2; diff --git a/src/qalculateresultdisplay.cpp b/src/qalculateresultdisplay.cpp index 0c7ccdf..f5515a5 100644 --- a/src/qalculateresultdisplay.cpp +++ b/src/qalculateresultdisplay.cpp @@ -146,7 +146,7 @@ TQString linkInfo(const MathStructure *m, TQWidget *w, bool full_length = false) str += "<br>"; str += "<br>"; TQString str2; - str2.sprintf(i18n("Retrieves data from the %s data set for a given object and property. If \"info\" is typed as property, a dialog window will pop up with all properties of the object."), f->title().c_str()); + str2.sprintf(i18n("Retrieves data from the %s data set for a given object and property. If \"info\" is typed as property, a dialog window will pop up with all properties of the object.").utf8(), f->title().c_str()); str2.replace("<", "<"); str2.replace(">", ">"); str += str2; |