Tracker: AttributeStream: implement default constructor
Set members to dummy values CID 610118
This commit is contained in:
parent
d069f646f1
commit
49d5d59cab
@ -48,7 +48,15 @@ All rights reserved.
|
|||||||
// #pragma mark - AttributeInfo
|
// #pragma mark - AttributeInfo
|
||||||
|
|
||||||
|
|
||||||
|
AttributeInfo::AttributeInfo()
|
||||||
:
|
:
|
||||||
|
fName("")
|
||||||
|
{
|
||||||
|
fInfo.type = B_RAW_TYPE;
|
||||||
|
fInfo.size = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
AttributeInfo::AttributeInfo(const AttributeInfo& other)
|
AttributeInfo::AttributeInfo(const AttributeInfo& other)
|
||||||
:
|
:
|
||||||
fName(other.fName),
|
fName(other.fName),
|
||||||
@ -70,8 +78,8 @@ AttributeInfo::AttributeInfo(const char* name, uint32 type, off_t size)
|
|||||||
:
|
:
|
||||||
fName(name)
|
fName(name)
|
||||||
{
|
{
|
||||||
fInfo.size = size;
|
|
||||||
fInfo.type = type;
|
fInfo.type = type;
|
||||||
|
fInfo.size = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -73,8 +73,7 @@ struct AttributeTemplate {
|
|||||||
class AttributeInfo {
|
class AttributeInfo {
|
||||||
// utility class for internal attribute description
|
// utility class for internal attribute description
|
||||||
public:
|
public:
|
||||||
AttributeInfo()
|
AttributeInfo();
|
||||||
{}
|
|
||||||
AttributeInfo(const AttributeInfo& other);
|
AttributeInfo(const AttributeInfo& other);
|
||||||
AttributeInfo(const char* name, attr_info info);
|
AttributeInfo(const char* name, attr_info info);
|
||||||
AttributeInfo(const char* name, uint32 type, off_t size);
|
AttributeInfo(const char* name, uint32 type, off_t size);
|
||||||
|
Loading…
Reference in New Issue
Block a user