| Index: src/shared/Communication.h |
| =================================================================== |
| --- a/src/shared/Communication.h |
| +++ b/src/shared/Communication.h |
| @@ -14,17 +14,17 @@ namespace Communication |
| extern const std::wstring pipeName; |
| const int bufferSize = 1024; |
| enum ValueType {TYPE_STRING, TYPE_WSTRING, TYPE_INT64, TYPE_INT32, TYPE_BOOL}; |
| class InputBuffer |
| { |
| public: |
| - InputBuffer(const std::string& data) : buffer(data) {} |
| + InputBuffer(const std::string& data) : buffer(data), hasType(false) {} |
| InputBuffer& operator>>(std::string& value) { return ReadString(value, TYPE_STRING); } |
| InputBuffer& operator>>(std::wstring& value) { return ReadString(value, TYPE_WSTRING); } |
| InputBuffer& operator>>(int64_t& value) { return Read(value, TYPE_INT64); } |
| InputBuffer& operator>>(int32_t& value) { return Read(value, TYPE_INT32); } |
| InputBuffer& operator>>(bool& value) { return Read(value, TYPE_BOOL); } |
| private: |
| std::istringstream buffer; |
| int32_t currentType; |