mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 02:29:19 +02:00
reformat: parameters can be made const
This commit is contained in:
@@ -104,7 +104,7 @@ state_manager::init_scripting_interface() {
|
||||
|
||||
// legacy method, calculates changes in simulation state over specified time
|
||||
void
|
||||
state_manager::update( double const Deltatime, int Iterationcount ) {
|
||||
state_manager::update( double const Deltatime, const int Iterationcount ) {
|
||||
// aktualizacja animacji krokiem FPS: dt=krok czasu [s], dt*iter=czas od ostatnich przeliczeń
|
||||
if (Deltatime == 0.0) { return; }
|
||||
|
||||
|
||||
@@ -1281,7 +1281,7 @@ state_serializer::export_as_text(std::string const &Scenariofile) const {
|
||||
}
|
||||
|
||||
void
|
||||
state_serializer::export_nodes_to_stream(std::ostream &scmfile, bool Dirty)
|
||||
state_serializer::export_nodes_to_stream(std::ostream &scmfile, const bool Dirty)
|
||||
{
|
||||
// groups
|
||||
scmfile << "// groups\n";
|
||||
|
||||
@@ -20,7 +20,7 @@ scenario_time Time;
|
||||
} // simulation
|
||||
|
||||
void
|
||||
scenario_time::init(std::time_t timestamp) {
|
||||
scenario_time::init(const std::time_t timestamp) {
|
||||
const char monthdaycounts[ 2 ][ 13 ] = {
|
||||
{ 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 },
|
||||
{ 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } };
|
||||
@@ -185,7 +185,7 @@ scenario_time::julian_day() const {
|
||||
return JD;
|
||||
}
|
||||
|
||||
void scenario_time::set_time(int yearday, int minute) {
|
||||
void scenario_time::set_time(const int yearday, const int minute) {
|
||||
m_yearday = yearday;
|
||||
daymonth(m_time.wDay, m_time.wMonth, m_time.wYear, m_yearday);
|
||||
m_time.wHour = minute / 60;
|
||||
|
||||
Reference in New Issue
Block a user