1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(interface): avoid gnu extensions in macros

In Standard C++, the `__VA_ARGS__` (`...`) part of variadic macros must
have at least one argument. `(void)` is a valid way to declare
parameterless functions, so we're using that here, even though it's not
idiomatic (but then again, nor is the whole macro).
This commit is contained in:
iphydf 2020-04-23 18:50:48 +00:00
parent fd8edb80d5
commit 8c8534f485
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
2 changed files with 4 additions and 4 deletions

View File

@ -49,8 +49,8 @@ public:
uint getSourceId() const;
void kill();
SIGNAL_IMPL(AlSink, finishedPlaying)
SIGNAL_IMPL(AlSink, invalidated)
SIGNAL_IMPL(AlSink, finishedPlaying, void)
SIGNAL_IMPL(AlSink, invalidated, void)
private:
OpenAL& audio;

View File

@ -107,8 +107,8 @@ public:
virtual operator bool() const = 0;
signals:
DECLARE_SIGNAL(finishedPlaying);
DECLARE_SIGNAL(invalidated);
DECLARE_SIGNAL(finishedPlaying, void);
DECLARE_SIGNAL(invalidated, void);
};
#endif // IAUDIOSINK_H