Skip to content

Commit 830e57e

Browse files
committed
2 parents bd87c37 + 319fe90 commit 830e57e

File tree

2 files changed

+42
-14
lines changed

2 files changed

+42
-14
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "CI: autotools: clang 10"
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
container: ubuntu:20.04
10+
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Build
14+
run: |
15+
# Prevent blocking the install on a question during configuring of tzdata.
16+
export ENV DEBIAN_FRONTEND=noninteractive
17+
apt update
18+
apt install build-essential mm-common clang-10 --yes
19+
export CXX=clang++-10
20+
./autogen.sh --enable-warnings=fatal
21+
make
22+
- name: Test
23+
run: make check
24+
- name: Distcheck
25+
run: |
26+
# distcheck runs configure again so we need to specify CXX again.
27+
export CXX=clang++-10
28+
make distcheck

examples/qt_with_qmake/exampleclass.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@
99

1010
class ExampleClass : public QObject
1111
{
12-
Q_OBJECT
12+
Q_OBJECT
1313
public:
14-
explicit ExampleClass(QObject *parent = nullptr);
14+
explicit ExampleClass(QObject* parent = nullptr);
1515

16-
/* Instead of using the keyword 'signals', use the 'Q_SIGNALS' macro */
16+
/* Instead of using the keyword 'signals', use the 'Q_SIGNALS' macro */
1717
Q_SIGNALS:
18-
void example_signal();
18+
void example_signal();
1919

20-
/* Instead of using the keyword 'slots', use the 'Q_SLOTS' macro */
20+
/* Instead of using the keyword 'slots', use the 'Q_SLOTS' macro */
2121
public Q_SLOTS:
22-
void timer_slot();
22+
void timer_slot();
2323

24-
/**
25-
* This slot is called using libsigc++, however since it is defined under Q_SLOTS
26-
* it could also be used with the Qt signals/slots
27-
*/
28-
void example_slot();
24+
/**
25+
* This slot is called using libsigc++, however since it is defined under Q_SLOTS
26+
* it could also be used with the Qt signals/slots
27+
*/
28+
void example_slot();
2929

3030
private:
31-
sigc::slot<void()> m_sigc_slot;
32-
sigc::signal<void()> m_sigc_signal;
33-
QTimer m_timer;
31+
sigc::slot<void()> m_sigc_slot;
32+
sigc::signal<void()> m_sigc_signal;
33+
QTimer m_timer;
3434
};
3535

3636
#endif // EXAMPLECLASS_H

0 commit comments

Comments
 (0)