From 710414d4a209163e9d583aeb9276ead66c01d8d6 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 23 Nov 2016 12:23:04 +0100 Subject: Make sure we can compile QtCore without QT_CONFIG(translation) Change-Id: I755834b77e50ff6f44bda561f007ec3306f3c1f9 Reviewed-by: Thiago Macieira --- src/corelib/io/qsavefile.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/corelib/io/qsavefile.h') diff --git a/src/corelib/io/qsavefile.h b/src/corelib/io/qsavefile.h index 10857c27d1..0a6af91261 100644 --- a/src/corelib/io/qsavefile.h +++ b/src/corelib/io/qsavefile.h @@ -84,6 +84,9 @@ protected: private: void close() Q_DECL_OVERRIDE; +#if !QT_CONFIG(translation) + static QString tr(const char *string) { return QString::fromLatin1(string); } +#endif private: Q_DISABLE_COPY(QSaveFile) -- cgit v1.2.3