mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
fix(MongoDB) use constants instead of typed enum in OpMsgMessage (#4822)
* fix(MongoDB): Use constants for payload types instead of enum to avoid improper binary serialisation with some compilers (int instead of unsigned char). * enh(MongoDB): Minor code improvements to use string literals.
This commit is contained in:
@@ -139,12 +139,6 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
enum PayloadType : UInt8
|
||||
{
|
||||
PAYLOAD_TYPE_0 = 0,
|
||||
PAYLOAD_TYPE_1 = 1
|
||||
};
|
||||
|
||||
std::string _databaseName;
|
||||
std::string _collectionName;
|
||||
UInt32 _flags { MSG_FLAGS_DEFAULT };
|
||||
|
||||
Reference in New Issue
Block a user