mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 23:19:19 +02:00
reformat: remove redundant 'inline' specifier
This commit is contained in:
@@ -29,19 +29,19 @@ public:
|
||||
///Loads info about coupler.
|
||||
void Load(cParser *Parser, TModel3d *Model);
|
||||
int GetStatus();
|
||||
inline void TurnOn() ///Turns on straight coupler.
|
||||
void TurnOn() ///Turns on straight coupler.
|
||||
{
|
||||
On = true;
|
||||
xOn = false;
|
||||
Update();
|
||||
};
|
||||
inline void TurnOff() ///Turns on disconnected coupler.
|
||||
void TurnOff() ///Turns on disconnected coupler.
|
||||
{
|
||||
On = false;
|
||||
xOn = false;
|
||||
Update();
|
||||
};
|
||||
inline void TurnxOn() ///Turns on slanted coupler.
|
||||
void TurnxOn() ///Turns on slanted coupler.
|
||||
{
|
||||
On = false;
|
||||
xOn = true;
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
};
|
||||
|
||||
// if the xOn model is missing, activate plain On instead
|
||||
inline void TurnxOnWithOnAsFallback()
|
||||
void TurnxOnWithOnAsFallback()
|
||||
{
|
||||
if (ModelxOn != nullptr) {
|
||||
On = false;
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
}
|
||||
};
|
||||
// if the xOn model is missing, activate plain Off instead
|
||||
inline void TurnxOnWithOffAsFallback()
|
||||
void TurnxOnWithOffAsFallback()
|
||||
{
|
||||
if (ModelxOn != nullptr) {
|
||||
On = false;
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
TurnOff();
|
||||
}
|
||||
};
|
||||
inline bool Active() const
|
||||
bool Active() const
|
||||
{
|
||||
return ModelOn != nullptr || ModelxOn != nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user