mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
[FS9] Const correctness
This commit is contained in:
committed by
Mat Sutcliffe
parent
41f28ea858
commit
e91b88691a
@@ -42,7 +42,7 @@ namespace BlackSimPlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Struct size
|
//! Struct size
|
||||||
qint32 size() { return 28; }
|
qint32 size() const { return 28; }
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Multiplayer packet - change player plane
|
//! Multiplayer packet - change player plane
|
||||||
@@ -61,7 +61,7 @@ namespace BlackSimPlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Struct size
|
//! Struct size
|
||||||
qint32 size() { return sizeof(CFs9Sdk::EngineType) + aircraft_name.size() + 1; }
|
qint32 size() const { return sizeof(CFs9Sdk::EngineType) + aircraft_name.size() + 1; }
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Multiplayer packet - chat text
|
//! Multiplayer packet - chat text
|
||||||
@@ -80,7 +80,7 @@ namespace BlackSimPlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Struct size
|
//! Struct size
|
||||||
qint32 size() { return chat_data.size() + 1; }
|
qint32 size() const { return chat_data.size() + 1; }
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Multiplayer packet in slew mode
|
//! Multiplayer packet in slew mode
|
||||||
@@ -105,7 +105,7 @@ namespace BlackSimPlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Struct size
|
//! Struct size
|
||||||
qint32 size() { return 36; }
|
qint32 size() const { return 36; }
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Multiplayer packet - position and velocity
|
//! Multiplayer packet - position and velocity
|
||||||
@@ -130,7 +130,7 @@ namespace BlackSimPlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Struct size
|
//! Struct size
|
||||||
qint32 size() { return 52; }
|
qint32 size() const { return 52; }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user