mirror of
https://github.com/zealdocs/zeal.git
synced 2026-08-29 08:34:50 +08:00
ci(github): fix clang-format check (#1822)
This commit is contained in:
@@ -19,7 +19,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
@@ -33,10 +32,16 @@ jobs:
|
||||
version: '22'
|
||||
style: file
|
||||
tidy-checks: '-*'
|
||||
format-review: true
|
||||
file-annotations: true
|
||||
files-changed-only: false
|
||||
ignore-format: 'src/contrib'
|
||||
|
||||
- name: Fail on format issues
|
||||
if: steps.linter.outputs.checks-failed > 0
|
||||
run: |
|
||||
echo "::error::${{ steps.linter.outputs.checks-failed }} formatting issue(s) found"
|
||||
exit 1
|
||||
|
||||
reuse:
|
||||
name: REUSE Compliance
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
#ifndef ZEAL_REGISTRY_SEARCHRESULT_H
|
||||
#define ZEAL_REGISTRY_SEARCHRESULT_H
|
||||
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
#include <QUrl>
|
||||
#include <QList>
|
||||
|
||||
namespace Zeal::Registry {
|
||||
|
||||
|
||||
@@ -196,7 +196,10 @@ bool QxtGlobalShortcutPrivate::unregisterShortcut(quint32 nativeKey, quint32 nat
|
||||
|
||||
QList<xcb_void_cookie_t> xcbCookies;
|
||||
for (quint32 maskMods : maskModifiers) {
|
||||
xcbCookies << xcb_ungrab_key_checked(xcbConnection, nativeKey, QX11Info::appRootWindow(), nativeMods | maskMods);
|
||||
xcbCookies << xcb_ungrab_key_checked(xcbConnection,
|
||||
nativeKey,
|
||||
QX11Info::appRootWindow(),
|
||||
nativeMods | maskMods);
|
||||
}
|
||||
|
||||
bool failed = false;
|
||||
|
||||
Reference in New Issue
Block a user