mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-08 01:26:04 -05:00
Mark free functions static where applicable
This commit is contained in:
@@ -18,12 +18,12 @@ const static std::map<MacroActionHttp::Method, std::string> methods = {
|
||||
"AdvSceneSwitcher.action.http.type.post"},
|
||||
};
|
||||
|
||||
size_t DropCB(void *, size_t size, size_t nmemb, std::string *)
|
||||
static size_t DropCB(void *, size_t size, size_t nmemb, std::string *)
|
||||
{
|
||||
return size * nmemb;
|
||||
}
|
||||
|
||||
size_t WriteCB(void *ptr, size_t size, size_t nmemb, std::string *buffer)
|
||||
static size_t WriteCB(void *ptr, size_t size, size_t nmemb, std::string *buffer)
|
||||
{
|
||||
buffer->append((char *)ptr, nmemb);
|
||||
return size * nmemb;
|
||||
|
||||
Reference in New Issue
Block a user