mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 21:49:19 +02:00
reformat: parameters can be made pointer to const
This commit is contained in:
@@ -503,7 +503,7 @@ void state_manager::delete_eventlauncher(TEventLauncher *launcher) {
|
||||
|
||||
// passes specified sound to all vehicles within range as a radio message broadcasted on specified channel
|
||||
void
|
||||
radio_message( sound_source *Message, int const Channel ) {
|
||||
radio_message(const sound_source *Message, int const Channel ) {
|
||||
|
||||
if( Train != nullptr ) {
|
||||
Train->radio_message( Message, Channel );
|
||||
|
||||
@@ -68,7 +68,7 @@ private:
|
||||
};
|
||||
|
||||
// passes specified sound to all vehicles within range as a radio message broadcasted on specified channel
|
||||
void radio_message( sound_source *Message, int Channel );
|
||||
void radio_message(const sound_source *Message, int Channel );
|
||||
|
||||
extern state_manager State;
|
||||
extern event_manager Events;
|
||||
|
||||
@@ -662,7 +662,7 @@ state_serializer::deserialize_origin( cParser &Input, scene::scratch_data &Scrat
|
||||
}
|
||||
|
||||
void
|
||||
state_serializer::deserialize_endorigin( cParser &Input, scene::scratch_data &Scratchpad ) {
|
||||
state_serializer::deserialize_endorigin(const cParser &Input, scene::scratch_data &Scratchpad ) {
|
||||
|
||||
if( false == Scratchpad.location.offset.empty() ) {
|
||||
Scratchpad.location.offset.pop();
|
||||
@@ -696,7 +696,7 @@ state_serializer::deserialize_scale( cParser &Input, scene::scratch_data &Scratc
|
||||
}
|
||||
|
||||
void
|
||||
state_serializer::deserialize_endscale( cParser &Input, scene::scratch_data &Scratchpad ) {
|
||||
state_serializer::deserialize_endscale(const cParser &Input, scene::scratch_data &Scratchpad ) {
|
||||
|
||||
if( false == Scratchpad.location.scale.empty() ) {
|
||||
Scratchpad.location.scale.pop();
|
||||
@@ -832,7 +832,7 @@ state_serializer::deserialize_editorterrain(cParser &Input, scene::scratch_data
|
||||
}
|
||||
|
||||
void
|
||||
state_serializer::deserialize_endtrainset( cParser &Input, scene::scratch_data &Scratchpad ) {
|
||||
state_serializer::deserialize_endtrainset(const cParser &Input, scene::scratch_data &Scratchpad ) {
|
||||
|
||||
if( false == Scratchpad.trainset.is_open
|
||||
|| true == Scratchpad.trainset.vehicles.empty() ) {
|
||||
@@ -920,7 +920,7 @@ state_serializer::deserialize_traction( cParser &Input, scene::scratch_data &Scr
|
||||
}
|
||||
|
||||
TTractionPowerSource *
|
||||
state_serializer::deserialize_tractionpowersource( cParser &Input, scene::scratch_data &Scratchpad, scene::node_data const &Nodedata ) {
|
||||
state_serializer::deserialize_tractionpowersource( cParser &Input, const scene::scratch_data &Scratchpad, scene::node_data const &Nodedata ) {
|
||||
|
||||
if( false == Global.bLoadTraction ) {
|
||||
skip_until( Input, "end" );
|
||||
@@ -936,7 +936,7 @@ state_serializer::deserialize_tractionpowersource( cParser &Input, scene::scratc
|
||||
}
|
||||
|
||||
TMemCell *
|
||||
state_serializer::deserialize_memorycell( cParser &Input, scene::scratch_data &Scratchpad, scene::node_data const &Nodedata ) {
|
||||
state_serializer::deserialize_memorycell( cParser &Input, const scene::scratch_data &Scratchpad, scene::node_data const &Nodedata ) {
|
||||
|
||||
auto *memorycell = new TMemCell( Nodedata );
|
||||
memorycell->Load( &Input );
|
||||
|
||||
@@ -64,9 +64,9 @@ private:
|
||||
void deserialize_light( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
void deserialize_node( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
static void deserialize_origin( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
static void deserialize_endorigin( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
static void deserialize_endorigin(const cParser &Input, scene::scratch_data &Scratchpad );
|
||||
static void deserialize_scale( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
static void deserialize_endscale( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
static void deserialize_endscale(const cParser &Input, scene::scratch_data &Scratchpad );
|
||||
static void deserialize_rotate( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
void deserialize_sky( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
void deserialize_test( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
@@ -74,11 +74,11 @@ private:
|
||||
void deserialize_trainset( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
void deserialize_terrain( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
void deserialize_editorterrain( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
static void deserialize_endtrainset( cParser &Input, scene::scratch_data &Scratchpad );
|
||||
static void deserialize_endtrainset(const cParser &Input, scene::scratch_data &Scratchpad );
|
||||
static TTrack * deserialize_path( cParser &Input, scene::scratch_data &Scratchpad, scene::node_data const &Nodedata );
|
||||
TTraction * deserialize_traction( cParser &Input, scene::scratch_data &Scratchpad, scene::node_data const &Nodedata );
|
||||
TTractionPowerSource * deserialize_tractionpowersource( cParser &Input, scene::scratch_data &Scratchpad, scene::node_data const &Nodedata );
|
||||
TMemCell * deserialize_memorycell( cParser &Input, scene::scratch_data &Scratchpad, scene::node_data const &Nodedata );
|
||||
TTractionPowerSource * deserialize_tractionpowersource( cParser &Input, const scene::scratch_data &Scratchpad, scene::node_data const &Nodedata );
|
||||
TMemCell * deserialize_memorycell( cParser &Input, const scene::scratch_data &Scratchpad, scene::node_data const &Nodedata );
|
||||
TEventLauncher * deserialize_eventlauncher( cParser &Input, scene::scratch_data &Scratchpad, scene::node_data const &Nodedata );
|
||||
TAnimModel * deserialize_model( cParser &Input, scene::scratch_data &Scratchpad, scene::node_data const &Nodedata );
|
||||
TDynamicObject * deserialize_dynamic( cParser &Input, scene::scratch_data &Scratchpad, scene::node_data const &Nodedata );
|
||||
|
||||
Reference in New Issue
Block a user