init variable in initializer list

This commit is contained in:
escherstair
2019-09-18 08:15:50 +02:00
committed by GitHub
parent 116dcce0ba
commit 6d4854f12c

View File

@@ -59,11 +59,7 @@ namespace FBX {
FBXExportProperty::FBXExportProperty(bool v)
: type('C')
, data(1) {
data = {
uint8_t(v)
};
}
, data(1, uint8_t(v)) {}
FBXExportProperty::FBXExportProperty(int16_t v)
: type('Y')