summary refs log tree commit diff
path: root/src/Logging.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-03-14 15:32:14 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-14 15:34:18 +0100
commit9b8e6c7f5cd9de7a8c4cbd0727a1956e2b27b0d0 (patch)
tree2b72d3225f5cc12886bcb808a5a44249234484f7 /src/Logging.cpp
parentReduce allocations when escaping emoji (diff)
downloadnheko-9b8e6c7f5cd9de7a8c4cbd0727a1956e2b27b0d0.tar.xz
Remove some more allocations
Diffstat (limited to '')
-rw-r--r--src/Logging.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Logging.cpp b/src/Logging.cpp

index 436de811..642e8957 100644 --- a/src/Logging.cpp +++ b/src/Logging.cpp
@@ -32,16 +32,17 @@ qmlMessageHandler(QtMsgType type, const QMessageLogContext &context, const QStri if ( // Surpress binding wrning for now, as we can't set restore mode to keep compat with // qt 5.10 - msg.contains( - "QML Binding: Not restoring previous value because restoreMode has not been set.") || + msg.contains(QStringLiteral( + "QML Binding: Not restoring previous value because restoreMode has not been set.")) || // The default style has the point size set. If you use pixel size anywhere, you get // that warning, which is useless, since sometimes you need the pixel size to match the // text to the size of the outer element for example. This is done in the avatar and // without that you get one warning for every Avatar displayed, which is stupid! - msg.endsWith("Both point size and pixel size set. Using pixel size.") || + msg.endsWith(QStringLiteral("Both point size and pixel size set. Using pixel size.")) || // The new syntax breaks rebinding on Qt < 5.15. Until we can drop that, we still need it. - msg.endsWith("QML Connections: Implicitly defined onFoo properties in Connections are " - "deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }")) + msg.endsWith(QStringLiteral( + "QML Connections: Implicitly defined onFoo properties in Connections are " + "deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }"))) return; switch (type) {