mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
minor cleanup
This commit is contained in:
@@ -36,7 +36,7 @@ class DBobView : public Renderable, public OpenGLRenderable, public Entity::Obse
|
||||
Shader* m_shader_box;
|
||||
public:
|
||||
DBobView();
|
||||
virtual ~DBobView();
|
||||
~DBobView();
|
||||
|
||||
protected:
|
||||
std::unique_ptr<vec3_t[]> path;
|
||||
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
void ClearFaces();
|
||||
void ClearPoints();
|
||||
|
||||
int RemoveRedundantPlanes( void );
|
||||
int RemoveRedundantPlanes();
|
||||
void RemovePlane( DPlane* plane );
|
||||
int PointPosition( vec3_t pnt );
|
||||
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
|
||||
DBrush();
|
||||
DBrush( DBrush&& ) noexcept = delete;
|
||||
virtual ~DBrush();
|
||||
~DBrush();
|
||||
|
||||
bool operator==( const DBrush* other ) const;
|
||||
|
||||
|
||||
@@ -550,7 +550,7 @@ void DEntity::SpawnVector( const char* key, const char* defaultstring, vec_t* ou
|
||||
}
|
||||
}
|
||||
|
||||
int DEntity::GetBrushCount( void ) {
|
||||
int DEntity::GetBrushCount() {
|
||||
return static_cast<int>( brushList.size() );
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
|
||||
// Constrcution/Destruction
|
||||
DEntity( const char* classname = "worldspawn", int ID = -1 ); // sets classname
|
||||
virtual ~DEntity();
|
||||
~DEntity();
|
||||
// ---------------------------------------------
|
||||
|
||||
// epair functions........
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
void ResetChecks( const std::vector<CopiedString>& exclusionList );
|
||||
void RemoveNonCheckBrushes( const std::vector<CopiedString>& exclusionList );
|
||||
|
||||
int GetBrushCount( void );
|
||||
int GetBrushCount();
|
||||
DBrush* FindBrushByPointer( scene::Node& brush );
|
||||
// ---------------------------------------------
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
std::list<DEntity*> entityList;
|
||||
|
||||
DMap();
|
||||
virtual ~DMap();
|
||||
~DMap();
|
||||
|
||||
int FixBrushes();
|
||||
};
|
||||
|
||||
@@ -73,6 +73,6 @@ public:
|
||||
int width, height;
|
||||
drawVert_t points[MAX_PATCH_WIDTH][MAX_PATCH_HEIGHT];
|
||||
DPatch();
|
||||
virtual ~DPatch();
|
||||
~DPatch();
|
||||
|
||||
};
|
||||
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
|
||||
DPlane( const vec3_t va, const vec3_t vb, const vec3_t vc, const _QERFaceData* texData );
|
||||
DPlane() = default;
|
||||
virtual ~DPlane();
|
||||
~DPlane();
|
||||
|
||||
bool m_bChkOk;
|
||||
_QERFaceData texInfo;
|
||||
|
||||
@@ -29,7 +29,7 @@ class DPoint
|
||||
{
|
||||
public:
|
||||
DPoint();
|
||||
virtual ~DPoint();
|
||||
~DPoint();
|
||||
|
||||
bool operator ==( vec3_t other );
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
static DBrush* GetBoundingCube_Ext( vec3_t min, vec3_t max, const char* textureName, bool* bUseFaces = bFacesAll, bool detail = false );
|
||||
|
||||
DShape();
|
||||
virtual ~DShape();
|
||||
~DShape();
|
||||
|
||||
void Commit();
|
||||
private:
|
||||
|
||||
@@ -46,7 +46,7 @@ DTrainDrawer::DTrainDrawer() {
|
||||
GlobalShaderCache().attachRenderable( *this );
|
||||
}
|
||||
|
||||
DTrainDrawer::~DTrainDrawer( void ) {
|
||||
DTrainDrawer::~DTrainDrawer() {
|
||||
GlobalShaderCache().detachRenderable( *this );
|
||||
destroyShaders();
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ private:
|
||||
public:
|
||||
|
||||
DTrainDrawer();
|
||||
virtual ~DTrainDrawer( void );
|
||||
~DTrainDrawer();
|
||||
|
||||
void render( RenderStateFlags state ) const override;
|
||||
void renderSolid( Renderer& renderer, const VolumeTest& volume ) const override;
|
||||
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
m_destroyed = GlobalRadiant().XYWindowDestroyed_connect( makeSignalHandler( DestroyedCaller(), *this ) );
|
||||
}
|
||||
|
||||
virtual ~DTreePlanter(){
|
||||
~DTreePlanter(){
|
||||
if ( !m_mouseDown.isNull() ) {
|
||||
GlobalRadiant().XYWindowMouseDown_disconnect( m_mouseDown );
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ class DVisDrawer : public Renderable, public OpenGLRenderable
|
||||
bool m_colorPerSurf;
|
||||
public:
|
||||
DVisDrawer();
|
||||
virtual ~DVisDrawer();
|
||||
~DVisDrawer();
|
||||
|
||||
void ClearPoints();
|
||||
private:
|
||||
|
||||
@@ -33,7 +33,7 @@ public:
|
||||
DWinding();
|
||||
DWinding( DWinding&& other ) noexcept;
|
||||
DWinding& operator=( DWinding&& other ) noexcept;
|
||||
virtual ~DWinding();
|
||||
~DWinding();
|
||||
|
||||
void AllocWinding( int points );
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "ScriptParser.h"
|
||||
#include <cstring>
|
||||
|
||||
CScriptParser::CScriptParser( void ) :
|
||||
CScriptParser::CScriptParser() :
|
||||
m_pScript( NULL ),
|
||||
m_pScriptSection( NULL ),
|
||||
m_pLastScriptSection( NULL ),
|
||||
@@ -28,11 +28,11 @@ CScriptParser::CScriptParser( void ) :
|
||||
ClearBuffer();
|
||||
}
|
||||
|
||||
CScriptParser::~CScriptParser( void ) {
|
||||
CScriptParser::~CScriptParser() {
|
||||
ClearBuffer();
|
||||
}
|
||||
|
||||
void CScriptParser::ClearBuffer( void ) {
|
||||
void CScriptParser::ClearBuffer() {
|
||||
if ( m_pScript ) {
|
||||
delete[] m_pScript;
|
||||
m_pScript = NULL;
|
||||
@@ -171,7 +171,7 @@ void CScriptParser::SkipWhitespace( bool* pbNewLines ) {
|
||||
}
|
||||
}
|
||||
|
||||
void CScriptParser::SkipBracedSection( void ) {
|
||||
void CScriptParser::SkipBracedSection() {
|
||||
const char *token;
|
||||
int depth;
|
||||
|
||||
@@ -189,7 +189,7 @@ void CScriptParser::SkipBracedSection( void ) {
|
||||
} while ( depth && *m_pScriptSection );
|
||||
}
|
||||
|
||||
void CScriptParser::SkipRestOfLine( void ) {
|
||||
void CScriptParser::SkipRestOfLine() {
|
||||
char *p;
|
||||
int c;
|
||||
|
||||
@@ -202,7 +202,7 @@ void CScriptParser::SkipRestOfLine( void ) {
|
||||
m_pScriptSection = p;
|
||||
}
|
||||
|
||||
void CScriptParser::UndoGetToken( void ) {
|
||||
void CScriptParser::UndoGetToken() {
|
||||
if ( !m_pLastScriptSection ) {
|
||||
return;
|
||||
}
|
||||
@@ -210,7 +210,7 @@ void CScriptParser::UndoGetToken( void ) {
|
||||
m_pLastScriptSection = NULL;
|
||||
}
|
||||
|
||||
void CScriptParser::ResetParseSession( void ) {
|
||||
void CScriptParser::ResetParseSession() {
|
||||
if ( !m_pScript ) {
|
||||
return;
|
||||
}
|
||||
@@ -219,7 +219,7 @@ void CScriptParser::ResetParseSession( void ) {
|
||||
m_pLastScriptSection = NULL;
|
||||
}
|
||||
|
||||
char* CScriptParser::GetBufferCopy( void ) {
|
||||
char* CScriptParser::GetBufferCopy() {
|
||||
if ( !m_pScript ) {
|
||||
return NULL;
|
||||
}
|
||||
@@ -230,7 +230,7 @@ char* CScriptParser::GetBufferCopy( void ) {
|
||||
return pBuffer;
|
||||
}
|
||||
|
||||
int CScriptParser::GetTokenOffset( void ) {
|
||||
int CScriptParser::GetTokenOffset() {
|
||||
if ( !m_pScript || !m_pScriptSection ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
class CScriptParser //: public IScriptParser
|
||||
{
|
||||
public:
|
||||
CScriptParser( void );
|
||||
~CScriptParser( void );
|
||||
CScriptParser();
|
||||
~CScriptParser();
|
||||
private:
|
||||
char m_breakChars[SP_MAX_BREAKCHARS];
|
||||
char* m_pScript;
|
||||
@@ -37,18 +37,18 @@ private:
|
||||
char* m_pToken;
|
||||
|
||||
void SkipWhitespace( bool* pbNewLines );
|
||||
void ClearBuffer( void );
|
||||
void ClearBuffer();
|
||||
const char* MakeToken( const char* pToken );
|
||||
bool IsBreakChar( char c );
|
||||
public:
|
||||
const char* GetToken( bool bAllowLinebreaks );
|
||||
void SkipBracedSection( void );
|
||||
void SkipRestOfLine( void );
|
||||
void UndoGetToken( void );
|
||||
void ResetParseSession( void );
|
||||
void SkipBracedSection();
|
||||
void SkipRestOfLine();
|
||||
void UndoGetToken();
|
||||
void ResetParseSession();
|
||||
|
||||
char* GetBufferCopy( void );
|
||||
int GetTokenOffset( void );
|
||||
char* GetBufferCopy();
|
||||
int GetTokenOffset();
|
||||
|
||||
void LoadScript( const char* pScript );
|
||||
void SetScript( char* pScript );
|
||||
|
||||
@@ -183,7 +183,7 @@ const char* QERPlug_GetCommandTitleList(){
|
||||
|
||||
#define NUM_TOOLBARBUTTONS 13
|
||||
|
||||
std::size_t ToolbarButtonCount( void ) {
|
||||
std::size_t ToolbarButtonCount() {
|
||||
return NUM_TOOLBARBUTTONS;
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ void SwapBlock( int *block, int sizeOfBlock ) {
|
||||
Byte swaps all data in a bsp file.
|
||||
=============
|
||||
*/
|
||||
void SwapBSPFile( void ) {
|
||||
void SwapBSPFile() {
|
||||
int i;
|
||||
|
||||
// models
|
||||
|
||||
@@ -23,11 +23,11 @@ class ExportData
|
||||
{
|
||||
public:
|
||||
ExportData( const StringSetWithLambda& ignorelist, collapsemode mode );
|
||||
virtual ~ExportData( void );
|
||||
virtual ~ExportData() = default;
|
||||
|
||||
virtual void BeginBrush( Brush& b );
|
||||
virtual void AddBrushFace( Face& f );
|
||||
virtual void EndBrush( void );
|
||||
virtual void EndBrush();
|
||||
|
||||
virtual bool WriteToFile( const std::string& path, collapsemode mode ) const = 0;
|
||||
|
||||
@@ -66,10 +66,6 @@ ExportData::ExportData( const StringSetWithLambda& _ignorelist, collapsemode _mo
|
||||
}
|
||||
}
|
||||
|
||||
ExportData::~ExportData( void ){
|
||||
|
||||
}
|
||||
|
||||
void ExportData::BeginBrush( Brush& b ){
|
||||
// create a new group for each brush
|
||||
if ( mode == COLLAPSE_NONE ) {
|
||||
@@ -80,7 +76,7 @@ void ExportData::BeginBrush( Brush& b ){
|
||||
}
|
||||
}
|
||||
|
||||
void ExportData::EndBrush( void ){
|
||||
void ExportData::EndBrush(){
|
||||
// all faces of this brush were on the ignorelist, discard the emptygroup
|
||||
if ( mode == COLLAPSE_NONE ) {
|
||||
ASSERT_NOTNULL( current );
|
||||
@@ -131,7 +127,7 @@ void ExportData::AddBrushFace( Face& f ){
|
||||
void ExportData::GetShaderNameFromShaderPath( const char* path, std::string& name ){
|
||||
std::string tmp( path );
|
||||
|
||||
size_t last_slash = tmp.find_last_of( "/" );
|
||||
size_t last_slash = tmp.find_last_of( '/' );
|
||||
|
||||
if ( last_slash == std::string::npos || last_slash == ( tmp.length() - 1 ) ) {
|
||||
name = path;
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#include "typesystem.h"
|
||||
|
||||
void CreateWindow( void );
|
||||
void CreateWindow();
|
||||
|
||||
QWidget *g_pRadiantWnd = nullptr;
|
||||
|
||||
@@ -83,7 +83,7 @@ class BrushExportDependencies :
|
||||
public GlobalSelectionModuleRef
|
||||
{
|
||||
public:
|
||||
BrushExportDependencies( void )
|
||||
BrushExportDependencies()
|
||||
: GlobalBrushModuleRef( GlobalRadiant().getRequiredGameDescriptionKeyValue( "brushtypes" ) )
|
||||
{}
|
||||
};
|
||||
|
||||
@@ -49,7 +49,7 @@ class UFOAIPluginDependencies :
|
||||
public GlobalEntityClassManagerModuleRef
|
||||
{
|
||||
public:
|
||||
UFOAIPluginDependencies( void ) :
|
||||
UFOAIPluginDependencies() :
|
||||
GlobalEntityModuleRef( GlobalRadiant().getRequiredGameDescriptionKeyValue( "entities" ) ),
|
||||
GlobalEntityClassManagerModuleRef( GlobalRadiant().getRequiredGameDescriptionKeyValue( "entityclass" ) ){
|
||||
}
|
||||
|
||||
@@ -233,7 +233,7 @@ void filter_level( int flag ){
|
||||
#endif
|
||||
}
|
||||
|
||||
void filter_stepon( void ){
|
||||
void filter_stepon(){
|
||||
if ( stepon_active ) {
|
||||
stepon_active = false;
|
||||
}
|
||||
@@ -252,7 +252,7 @@ void filter_stepon( void ){
|
||||
}
|
||||
}
|
||||
|
||||
void filter_nodraw( void ){
|
||||
void filter_nodraw(){
|
||||
if ( nodraw_active ) {
|
||||
nodraw_active = false;
|
||||
}
|
||||
@@ -273,7 +273,7 @@ void filter_nodraw( void ){
|
||||
#endif
|
||||
}
|
||||
|
||||
void filter_actorclip( void ){
|
||||
void filter_actorclip(){
|
||||
if ( actorclip_active ) {
|
||||
actorclip_active = false;
|
||||
}
|
||||
@@ -294,7 +294,7 @@ void filter_actorclip( void ){
|
||||
#endif
|
||||
}
|
||||
|
||||
void filter_weaponclip( void ){
|
||||
void filter_weaponclip(){
|
||||
if ( weaponclip_active ) {
|
||||
weaponclip_active = false;
|
||||
}
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
#pragma once
|
||||
|
||||
void filter_level( int flag );
|
||||
void filter_stepon( void );
|
||||
void filter_actorclip( void );
|
||||
void filter_weaponclip( void );
|
||||
void filter_nodraw( void );
|
||||
void filter_stepon();
|
||||
void filter_actorclip();
|
||||
void filter_weaponclip();
|
||||
void filter_nodraw();
|
||||
|
||||
#define SURF_NODRAW 0x80
|
||||
|
||||
|
||||
@@ -27,14 +27,14 @@
|
||||
/**
|
||||
* @brief
|
||||
*/
|
||||
std::size_t ToolbarButtonCount( void ){
|
||||
std::size_t ToolbarButtonCount(){
|
||||
return NUM_TOOLBARBUTTONS;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Used if the ufo plugin should not be visible (at least the toolbar stuff)
|
||||
*/
|
||||
std::size_t ToolbarNoButtons( void ){
|
||||
std::size_t ToolbarNoButtons(){
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,5 +22,5 @@
|
||||
|
||||
const IToolbarButton* GetToolbarButton( std::size_t index );
|
||||
const IToolbarButton* GetToolbarNoButton( std::size_t index );
|
||||
std::size_t ToolbarButtonCount( void );
|
||||
std::size_t ToolbarNoButtons( void );
|
||||
std::size_t ToolbarButtonCount();
|
||||
std::size_t ToolbarNoButtons();
|
||||
|
||||
Reference in New Issue
Block a user