Code style cleanup

This commit is contained in:
Erik Minekus 2016-02-28 17:30:01 +01:00 committed by Nicholas Hastings
parent 62c722384f
commit 32016f2987
4 changed files with 10 additions and 11 deletions

View File

@ -33,14 +33,14 @@
using namespace SourceMod;
FileDownloader::FileDownloader( const char *file )
FileDownloader::FileDownloader(const char *file)
{
fpLocal = fopen(file, "wb");
}
FileDownloader::~FileDownloader(void)
{
if(this->fpLocal != NULL)
if (this->fpLocal != NULL)
{
fclose(this->fpLocal);
}

View File

@ -1,7 +1,7 @@
/**
* vim: set ts=4 :
* =============================================================================
* SourceMod Updater Extension
* SourceMod Webternet Extension
* Copyright (C) 2004-2009 AlliedModders LLC. All rights reserved.
* =============================================================================
*

View File

@ -29,8 +29,8 @@
* Version: $Id$
*/
#ifndef _INCLUDE_SOURCEMOD_UPDATER_MEMORY_DOWNLOADER_H_
#define _INCLUDE_SOURCEMOD_UPDATER_MEMORY_DOWNLOADER_H_
#ifndef _INCLUDE_SOURCEMOD_CURLEXT_MEMORY_DOWNLOADER_H_
#define _INCLUDE_SOURCEMOD_CURLEXT_MEMORY_DOWNLOADER_H_
#include <IBaseDownloader.h>
@ -58,5 +58,5 @@ namespace SourceMod
};
}
#endif /* _INCLUDE_SOURCEMOD_UPDATER_MEMORY_DOWNLOADER_H_ */
#endif /* _INCLUDE_SOURCEMOD_CURLEXT_MEMORY_DOWNLOADER_H_ */

View File

@ -591,10 +591,8 @@ const sp_nativeinfo_t curlext_natives[] =
{"HTTP_GetBodyContent", HTTP_GetBodyContent},
// Methodmap versions
{"HTTPFileDownloader.BodySize.get", HTTP_GetBodySize},
{"HTTPFileDownloader.GetBodyContent", HTTP_GetBodyContent},
{"HTTPMemoryDownloader.BodySize.get", HTTP_GetBodySize},
{"HTTPMemoryDownloader.GetBodyContent", HTTP_GetBodyContent},
{"HTTPDownloader.BodySize.get", HTTP_GetBodySize},
{"HTTPDownloader.GetBodyContent", HTTP_GetBodyContent},
{"HTTPSession.SetFailOnHTTPError", HTTP_SetFailOnHTTPError},
{"HTTPSession.GetLastError", HTTP_GetLastError},
{"HTTPSession.Download", HTTP_Download},
@ -835,7 +833,8 @@ void HTTPHandleDispatcher::OnHandleDestroy(HandleType_t type, void *object)
}
}
IPlugin *FindPluginByContext(IPluginContext *pContext) {
IPlugin *FindPluginByContext(IPluginContext *pContext)
{
IPlugin *pFoundPlugin;
IPluginIterator *pPluginIterator = plsys->GetPluginIterator();