diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-22 17:23:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-22 17:23:36 +0300 |
commit | 505d65fa57be4af4ecf5b1b5c6582403e984bc19 (patch) | |
tree | 91de08793ef181152293f56a66247344c836bb3e /src/gui/windows/whoisonline.h | |
parent | 908c8cf42783133861d734dc0de1b170d9507564 (diff) | |
download | mv-505d65fa57be4af4ecf5b1b5c6582403e984bc19.tar.gz mv-505d65fa57be4af4ecf5b1b5c6582403e984bc19.tar.bz2 mv-505d65fa57be4af4ecf5b1b5c6582403e984bc19.tar.xz mv-505d65fa57be4af4ecf5b1b5c6582403e984bc19.zip |
Add restrict keyword in some functions in whoisonline.
Diffstat (limited to 'src/gui/windows/whoisonline.h')
-rw-r--r-- | src/gui/windows/whoisonline.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/whoisonline.h b/src/gui/windows/whoisonline.h index f5183ad92..ff5811ed8 100644 --- a/src/gui/windows/whoisonline.h +++ b/src/gui/windows/whoisonline.h @@ -116,9 +116,10 @@ class WhoIsOnline final : public Window, /** * A libcurl callback for writing to memory. */ - static size_t memoryWrite(void *ptr, size_t size, + static size_t memoryWrite(void *restrict ptr, + size_t size, size_t nmemb, - FILE *stream); + FILE *restrict stream); #endif const std::string prepareNick(const std::string &restrict nick, |