[X2Go-Commits] [x2gokdriveclient] 01/01: replace QByteArray::compare with operator ==.
git-admin at x2go.org
git-admin at x2go.org
Thu Mar 17 16:39:45 CET 2022
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2gokdriveclient.
commit 8b290e3d680cd71d9dbc73884dd366f6cb224dd9
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date: Thu Mar 17 09:39:21 2022 -0600
replace QByteArray::compare with operator ==.
---
debian/changelog | 1 +
extwin.cpp | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 4320b97..3a0fa7b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -43,5 +43,6 @@ x2gokdriveclient (0.0.0.1-0x2go1) UNRELEASED; urgency=medium
- rootless mode for x2gokdrive.
- improve WM updates procedure.
- sending KEYRELEASE immediately after KEYPRESS to avoid the "key sticking".
+ - replace QByteArray::compare with operator ==.
-- Mike Gabriel <mike.gabriel at das-netzwerkteam.de> Tue, 04 Jun 2019 11:10:43 +0200
diff --git a/extwin.cpp b/extwin.cpp
index 14c3e24..ea61384 100644
--- a/extwin.cpp
+++ b/extwin.cpp
@@ -411,7 +411,7 @@ bool ExtWin::nativeEvent(const QByteArray &eventType, void *message, long *resul
#ifdef Q_OS_LINUX
if((windowType == WINDOW_TYPE_NORMAL)||(windowType == WINDOW_TYPE_DIALOG))
{
- if(!eventType.compare("xcb_generic_event_t") && parentId==0)
+ if(eventType=="xcb_generic_event_t" && parentId==0)
{
xcb_generic_event_t* ev = static_cast<xcb_generic_event_t *>(message);
switch((ev->response_type & ~0x80))
@@ -441,7 +441,7 @@ bool ExtWin::nativeEvent(const QByteArray &eventType, void *message, long *resul
#ifdef Q_OS_WIN
if((windowType == WINDOW_TYPE_NORMAL)||(windowType == WINDOW_TYPE_DIALOG))
{
- if(!eventType.compare("windows_generic_MSG") && parentId==0)
+ if(eventType=="windows_generic_MSG" && parentId==0)
{
MSG* ev = static_cast<MSG *>(message);
switch((ev->message))
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdriveclient.git
More information about the x2go-commits
mailing list