mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-02-21 12:34:56 +00:00
SetRecordData is not really needed anymore so get rid of it
Always use SetRecordDataFull now.
This commit is contained in:
parent
7117ff7be2
commit
2057c797cb
4 changed files with 3 additions and 11 deletions
|
@ -30,7 +30,6 @@
|
||||||
namespace mchlib {
|
namespace mchlib {
|
||||||
struct TigerHash;
|
struct TigerHash;
|
||||||
struct FileRecordData;
|
struct FileRecordData;
|
||||||
struct SetRecordData;
|
|
||||||
struct SetRecordDataFull;
|
struct SetRecordDataFull;
|
||||||
} //namespace mchlib
|
} //namespace mchlib
|
||||||
|
|
||||||
|
|
|
@ -130,17 +130,13 @@ namespace mchlib {
|
||||||
bool hash_valid;
|
bool hash_valid;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SetRecordData {
|
struct SetRecordDataFull {
|
||||||
boost::string_ref name;
|
|
||||||
char type;
|
|
||||||
char content_type;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct SetRecordDataFull : public SetRecordData {
|
|
||||||
std::string name;
|
std::string name;
|
||||||
std::string disk_label;
|
std::string disk_label;
|
||||||
std::string fs_uuid;
|
std::string fs_uuid;
|
||||||
uint32_t disk_number;
|
uint32_t disk_number;
|
||||||
|
char type;
|
||||||
|
char content_type;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !defined(NDEBUG)
|
#if !defined(NDEBUG)
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
namespace mchlib {
|
namespace mchlib {
|
||||||
struct FileRecordData;
|
struct FileRecordData;
|
||||||
struct SetRecordData;
|
|
||||||
struct SetRecordDataFull;
|
struct SetRecordDataFull;
|
||||||
struct TigerHash;
|
struct TigerHash;
|
||||||
} //namespace mchlib
|
} //namespace mchlib
|
||||||
|
|
|
@ -29,13 +29,11 @@ namespace mchlib {
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetBasic::on_data_destroy (SetRecordDataFull& parData) {
|
void SetBasic::on_data_destroy (SetRecordDataFull& parData) {
|
||||||
static_cast<SetRecordData&>(parData).name.clear();
|
|
||||||
parData.name.clear();
|
parData.name.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetBasic::on_data_create (SetRecordDataFull& parData) {
|
void SetBasic::on_data_create (SetRecordDataFull& parData) {
|
||||||
parData.name = m_set_name;
|
parData.name = m_set_name;
|
||||||
static_cast<SetRecordData&>(parData).name = parData.name;
|
|
||||||
}
|
}
|
||||||
} //namespace scantask
|
} //namespace scantask
|
||||||
} //namespace mchlib
|
} //namespace mchlib
|
||||||
|
|
Loading…
Add table
Reference in a new issue