style: replace (void) with ()

This commit is contained in:
Eric Wasylishen 2024-02-26 21:07:22 -07:00
parent f9b374c6f7
commit f3da00395d
12 changed files with 25 additions and 25 deletions

View File

@ -445,7 +445,7 @@ extern std::vector<surfflags_t> extended_texinfo_flags;
// public functions // public functions
void FixupGlobalSettings(void); void FixupGlobalSettings();
void GetFileSpace(uint8_t **lightdata, uint8_t **colordata, uint8_t **deluxdata, int size); void GetFileSpace(uint8_t **lightdata, uint8_t **colordata, uint8_t **deluxdata, int size);
void GetFileSpace_PreserveOffsetInBsp(uint8_t **lightdata, uint8_t **colordata, uint8_t **deluxdata, int lightofs); void GetFileSpace_PreserveOffsetInBsp(uint8_t **lightdata, uint8_t **colordata, uint8_t **deluxdata, int lightofs);
const modelinfo_t *ModelInfoForModel(const mbsp_t *bsp, int modelnum); const modelinfo_t *ModelInfoForModel(const mbsp_t *bsp, int modelnum);

View File

@ -276,7 +276,7 @@ struct mapdata_t
extern mapdata_t map; extern mapdata_t map;
void CalculateWorldExtent(void); void CalculateWorldExtent();
struct texture_def_issues_t : logging::stat_tracker_t struct texture_def_issues_t : logging::stat_tracker_t
{ {
@ -308,8 +308,8 @@ void ProcessExternalMapEntity(mapentity_t &entity);
void ProcessAreaPortal(mapentity_t &entity); void ProcessAreaPortal(mapentity_t &entity);
bool IsWorldBrushEntity(const mapentity_t &entity); bool IsWorldBrushEntity(const mapentity_t &entity);
bool IsNonRemoveWorldBrushEntity(const mapentity_t &entity); bool IsNonRemoveWorldBrushEntity(const mapentity_t &entity);
void LoadMapFile(void); void LoadMapFile();
void ConvertMapFile(void); void ConvertMapFile();
void ProcessMapBrushes(); void ProcessMapBrushes();
struct quark_tx_info_t struct quark_tx_info_t

View File

@ -24,6 +24,6 @@
size_t ExportMapTexinfo(size_t texinfonum); size_t ExportMapTexinfo(size_t texinfonum);
size_t ExportMapPlane(size_t planenum); size_t ExportMapPlane(size_t planenum);
void BeginBSPFile(void); void BeginBSPFile();
void FinishBSPFile(void); void FinishBSPFile();
void UpdateBSPFileEntitiesLump(); void UpdateBSPFileEntitiesLump();

View File

@ -239,7 +239,7 @@ extern int leaflongs;
extern fs::path portalfile, statefile, statetmpfile; extern fs::path portalfile, statefile, statetmpfile;
void BasePortalVis(void); void BasePortalVis();
visstats_t PortalFlow(visportal_t *p); visstats_t PortalFlow(visportal_t *p);
@ -249,9 +249,9 @@ void CalcPHS(mbsp_t *bsp);
extern time_point starttime, endtime, statetime; extern time_point starttime, endtime, statetime;
void SaveVisState(void); void SaveVisState();
bool LoadVisState(void); bool LoadVisState();
void CleanVisState(void); void CleanVisState();
#include <common/settings.hh> #include <common/settings.hh>
#include <common/fs.hh> #include <common/fs.hh>

View File

@ -208,7 +208,7 @@ std::string TargetnameForLightStyle(int style)
* entdicts should not be modified after this (saves pointers to elements) * entdicts should not be modified after this (saves pointers to elements)
* ================== * ==================
*/ */
static void MatchTargets(void) static void MatchTargets()
{ {
for (auto &entity : all_lights) { for (auto &entity : all_lights) {
const std::string &targetstr = entity->epairs->get("target"); const std::string &targetstr = entity->epairs->get("target");
@ -1175,7 +1175,7 @@ inline void EstimateLightAABB(const std::unique_ptr<light_t> &light)
light->bounds = EstimateVisibleBoundsAtPoint(light->origin.value()); light->bounds = EstimateVisibleBoundsAtPoint(light->origin.value());
} }
void EstimateLightVisibility(void) void EstimateLightVisibility()
{ {
logging::funcheader(); logging::funcheader();

View File

@ -1409,7 +1409,7 @@ static void PrintLight(const light_t &light)
logging::print("\n"); logging::print("\n");
} }
static void PrintLights(void) static void PrintLights()
{ {
logging::print("===PrintLights===\n"); logging::print("===PrintLights===\n");

View File

@ -3366,7 +3366,7 @@ void ProcessMapBrushes()
} }
} }
void LoadMapFile(void) void LoadMapFile()
{ {
logging::funcheader(); logging::funcheader();
@ -3609,7 +3609,7 @@ static void ConvertEntity(std::ofstream &f, const mapentity_t &entity, const con
f << "}\n"; f << "}\n";
} }
void ConvertMapFile(void) void ConvertMapFile()
{ {
logging::funcheader(); logging::funcheader();

View File

@ -1246,7 +1246,7 @@ UpdateEntLump
================= =================
*/ */
static void UpdateEntLump(void) static void UpdateEntLump()
{ {
logging::print(logging::flag::STAT, " Updating entities lump...\n"); logging::print(logging::flag::STAT, " Updating entities lump...\n");
@ -1473,7 +1473,7 @@ static void CreateSingleHull(hull_index_t hullnum)
CreateHulls CreateHulls
================= =================
*/ */
static void CreateHulls(void) static void CreateHulls()
{ {
/* create the hulls sequentially */ /* create the hulls sequentially */
auto &hulls = qbsp_options.target_game->get_hull_sizes(); auto &hulls = qbsp_options.target_game->get_hull_sizes();

View File

@ -316,7 +316,7 @@ void ExportDrawNodes(mapentity_t &entity, node_t *headnode, int firstface)
BeginBSPFile BeginBSPFile
================== ==================
*/ */
void BeginBSPFile(void) void BeginBSPFile()
{ {
// First edge must remain unused because 0 can't be negated // First edge must remain unused because 0 can't be negated
map.bsp.dedges.emplace_back(); map.bsp.dedges.emplace_back();
@ -333,7 +333,7 @@ void BeginBSPFile(void)
* Writes extended texinfo flags to a file so they can be read by the light tool. * Writes extended texinfo flags to a file so they can be read by the light tool.
* Used for phong shading and other lighting settings on func_detail. * Used for phong shading and other lighting settings on func_detail.
*/ */
static void WriteExtendedTexinfoFlags(void) static void WriteExtendedTexinfoFlags()
{ {
auto file = fs::path(qbsp_options.bsp_path).replace_extension("texinfo.json"); auto file = fs::path(qbsp_options.bsp_path).replace_extension("texinfo.json");
bool needwrite = false; bool needwrite = false;
@ -528,7 +528,7 @@ static void WriteBSPFile()
FinishBSPFile FinishBSPFile
================== ==================
*/ */
void FinishBSPFile(void) void FinishBSPFile()
{ {
logging::funcheader(); logging::funcheader();

View File

@ -649,7 +649,7 @@ static void BasePortalThread(size_t portalnum)
BasePortalVis BasePortalVis
============== ==============
*/ */
void BasePortalVis(void) void BasePortalVis()
{ {
logging::parallel_for(0, numportals * 2, BasePortalThread); logging::parallel_for(0, numportals * 2, BasePortalThread);
} }

View File

@ -131,7 +131,7 @@ static void CopyLeafBits(leafbits_t &dst, const uint8_t *src, size_t numleafs)
} }
} }
void SaveVisState(void) void SaveVisState()
{ {
int vis_len, might_len; int vis_len, might_len;
dvisstate_t state; dvisstate_t state;
@ -187,14 +187,14 @@ void SaveVisState(void)
FError("error renaming state file ({})", ec.message()); FError("error renaming state file ({})", ec.message());
} }
void CleanVisState(void) void CleanVisState()
{ {
if (fs::exists(statefile)) { if (fs::exists(statefile)) {
fs::remove(statefile); fs::remove(statefile);
} }
} }
bool LoadVisState(void) bool LoadVisState()
{ {
fs::file_time_type prt_time, state_time; fs::file_time_type prt_time, state_time;
int numbytes; int numbytes;

View File

@ -231,7 +231,7 @@ static std::atomic_int64_t portalIndex;
the earlier information. the earlier information.
============= =============
*/ */
visportal_t *GetNextPortal(void) visportal_t *GetNextPortal()
{ {
visportal_t *ret = nullptr; visportal_t *ret = nullptr;
uint32_t min = INT_MAX; uint32_t min = INT_MAX;