From bafbf3b872103409370fbda43a2ce3ad153a33f4 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 13 Oct 2015 11:06:45 +0200 Subject: Provide a simpler and safer version of qdtoa() The new version returns a QString instead of a char * that has to be manually free()'d by the user. Also, it does away with most of the parameters so that we can replace the implementation with something saner without mapping all those modes between the implementations. Change-Id: I42ff95648e7955b9e74eb0f459a1fdedc1ad7efb Reviewed-by: Thiago Macieira --- src/corelib/tools/qlocale_tools_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/corelib/tools/qlocale_tools_p.h') diff --git a/src/corelib/tools/qlocale_tools_p.h b/src/corelib/tools/qlocale_tools_p.h index 03f35209b4..516a9fd05b 100644 --- a/src/corelib/tools/qlocale_tools_p.h +++ b/src/corelib/tools/qlocale_tools_p.h @@ -68,6 +68,7 @@ QT_BEGIN_NAMESPACE QString qulltoa(qulonglong l, int base, const QChar _zero); QString qlltoa(qlonglong l, int base, const QChar zero); +Q_CORE_EXPORT QString qdtoa(qreal d, int *decpt, int *sign); enum PrecisionMode { PMDecimalDigits = 0x01, -- cgit v1.2.3