Tracker: AttributeStream: implement default constructor

Set members to dummy values

CID 610118
This commit is contained in:
John Scipione 2014-07-22 23:30:41 -04:00
parent d069f646f1
commit 49d5d59cab
2 changed files with 10 additions and 3 deletions

View File

@ -48,7 +48,15 @@ All rights reserved.
// #pragma mark - AttributeInfo
AttributeInfo::AttributeInfo()
:
fName("")
{
fInfo.type = B_RAW_TYPE;
fInfo.size = 0;
}
AttributeInfo::AttributeInfo(const AttributeInfo& other)
:
fName(other.fName),
@ -70,8 +78,8 @@ AttributeInfo::AttributeInfo(const char* name, uint32 type, off_t size)
:
fName(name)
{
fInfo.size = size;
fInfo.type = type;
fInfo.size = size;
}

View File

@ -73,8 +73,7 @@ struct AttributeTemplate {
class AttributeInfo {
// utility class for internal attribute description
public:
AttributeInfo()
{}
AttributeInfo();
AttributeInfo(const AttributeInfo& other);
AttributeInfo(const char* name, attr_info info);
AttributeInfo(const char* name, uint32 type, off_t size);