diff options
author | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-27 14:18:09 +0200 |
---|---|---|
committer | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-07-07 11:51:48 +0200 |
commit | 6ce2f3f26bf08b4c6952f492a3731eb4fe5a42bc (patch) | |
tree | 727427eb4c603e74954d4da462484ea7bf5c65bb /src/plugins/platforms/cocoa/qnsview_complextext.mm | |
parent | d9cc1499954829faf9486fb72056e29f1bad58e3 (diff) |
Add ; to Q_UNUSED
This is required to remove the ; from the macro with Qt 6.
Task-number: QTBUG-82978
Change-Id: I3f0b6717956ca8fa486bed9817b89dfa19f5e0e1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qnsview_complextext.mm')
-rw-r--r-- | src/plugins/platforms/cocoa/qnsview_complextext.mm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/platforms/cocoa/qnsview_complextext.mm b/src/plugins/platforms/cocoa/qnsview_complextext.mm index 5926840cf3..48cea12a14 100644 --- a/src/plugins/platforms/cocoa/qnsview_complextext.mm +++ b/src/plugins/platforms/cocoa/qnsview_complextext.mm @@ -95,7 +95,7 @@ - (void)insertText:(id)aString replacementRange:(NSRange)replacementRange { - Q_UNUSED(replacementRange) + Q_UNUSED(replacementRange); if (m_sendKeyEvent && m_composingText.isEmpty() && [aString isEqualToString:m_inputSource]) { // don't send input method events for simple text input (let handleKeyEvent send key events instead) @@ -129,7 +129,7 @@ - (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replacementRange:(NSRange)replacementRange { - Q_UNUSED(replacementRange) + Q_UNUSED(replacementRange); QString preeditString; QList<QInputMethodEvent::Attribute> attrs; @@ -199,7 +199,7 @@ - (NSAttributedString *)attributedSubstringForProposedRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange { - Q_UNUSED(actualRange) + Q_UNUSED(actualRange); QObject *fo = m_platformWindow->window()->focusObject(); if (!fo) return nil; @@ -255,8 +255,8 @@ - (NSRect)firstRectForCharacterRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange { - Q_UNUSED(aRange) - Q_UNUSED(actualRange) + Q_UNUSED(aRange); + Q_UNUSED(actualRange); QObject *fo = m_platformWindow->window()->focusObject(); if (!fo) @@ -305,7 +305,7 @@ - (void)textInputContextKeyboardSelectionDidChangeNotification:(NSNotification *)textInputContextKeyboardSelectionDidChangeNotification { - Q_UNUSED(textInputContextKeyboardSelectionDidChangeNotification) + Q_UNUSED(textInputContextKeyboardSelectionDidChangeNotification); if (([NSApp keyWindow] == self.window) && self.window.firstResponder == self) { if (QCocoaInputContext *ic = qobject_cast<QCocoaInputContext *>(QCocoaIntegration::instance()->inputContext())) ic->updateLocale(); |