mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-11 02:09:03 -04:00
Make mutable static variables instance variables where necessary
Static storage variables that should have been class members are made so. This ensures that if they are used as initialization one time switches then they will operate correctly when their class instantiated more than once. This now happoens for most classes due to the configurations switching facility which destroys all windows and re-instantiates them. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6661 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+2
-5
@@ -62,13 +62,10 @@ struct HRDMessage
|
||||
qint32 checksum_; // Apparently not used.
|
||||
QChar payload_[0]; // UTF-16 (which is wchar_t on Windows)
|
||||
|
||||
static qint32 const magic_1_value_;
|
||||
static qint32 const magic_2_value_;
|
||||
static qint32 constexpr magic_1_value_ = 0x1234ABCD;
|
||||
static qint32 constexpr magic_2_value_ = 0xABCD1234;
|
||||
};
|
||||
|
||||
qint32 const HRDMessage::magic_1_value_ (0x1234ABCD);
|
||||
qint32 const HRDMessage::magic_2_value_ (0xABCD1234);
|
||||
|
||||
HRDTransceiver::HRDTransceiver (std::unique_ptr<TransceiverBase> wrapped
|
||||
, QString const& server
|
||||
, bool use_for_ptt
|
||||
|
||||
Reference in New Issue
Block a user