diff options
author | Tuomas Vaarala <tuomas.vaarala@qt.io> | 2020-08-17 10:27:53 +0300 |
---|---|---|
committer | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2021-04-09 07:53:48 +0200 |
commit | f1e2e718f8119181be0b84ad7b1ac5a95ec71e50 (patch) | |
tree | d63d82bd4c007aeb19b4680a8f7edffc4ae69c23 /src | |
parent | 47667b6d3d9ed38fbbfad25587b4cf443921605c (diff) |
QSystemSemaphorePrivate: Fix a call to tr() to translate()
Calling QCoreApplication::tr() without #if QT_CONFIG(translation)
can cause the build to fail if configured without translation.
Changing the call to QCoreApplication::translate() fixes that.
Change-Id: I48f0e1be14fc81360b8268620afc2f6c8f255819
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
(cherry picked from commit 1051e23ce91a980c5e961b4dcb6d61997bc08050)
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qsystemsemaphore_posix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qsystemsemaphore_posix.cpp b/src/corelib/kernel/qsystemsemaphore_posix.cpp index d664da660d..23409d4e3f 100644 --- a/src/corelib/kernel/qsystemsemaphore_posix.cpp +++ b/src/corelib/kernel/qsystemsemaphore_posix.cpp @@ -70,7 +70,7 @@ bool QSystemSemaphorePrivate::handle(QSystemSemaphore::AccessMode mode) return true; // we already have a semaphore if (fileName.isEmpty()) { - errorString = QCoreApplication::tr("%1: key is empty", "QSystemSemaphore").arg(QLatin1String("QSystemSemaphore::handle")); + errorString = QCoreApplication::translate("%1: key is empty", "QSystemSemaphore").arg(QLatin1String("QSystemSemaphore::handle")); error = QSystemSemaphore::KeyError; return false; } |