回滚代码

This commit is contained in:
xiongziliang 2019-09-20 14:05:23 +08:00
parent eb2c514e72
commit 91adaaaab6
2 changed files with 3 additions and 3 deletions

View File

@ -76,8 +76,8 @@ inline void AMFValue::init() {
}
}
AMFValue::AMFValue() :
_type(AMF_NULL) {
AMFValue::AMFValue(AMFType type) :
_type(type) {
init();
}

View File

@ -55,7 +55,7 @@ public:
typedef std::map<std::string, AMFValue> mapType;
typedef std::vector<AMFValue> arrayType;
AMFValue();
AMFValue(AMFType type = AMF_NULL);
AMFValue(const char *s);
AMFValue(const std::string &s);
AMFValue(double n);