MVC2.0: Use member initializers in ClientLibManagement structs
This commit is contained in:
parent
2a98b38a56
commit
6300447e9d
|
@ -39,11 +39,10 @@
|
||||||
namespace ClientLibManagement {
|
namespace ClientLibManagement {
|
||||||
|
|
||||||
struct ClientLibBinaryInfo {
|
struct ClientLibBinaryInfo {
|
||||||
size_t totalBytes;
|
size_t totalBytes = 0;
|
||||||
size_t chunkCnt;
|
size_t chunkCnt = 0;
|
||||||
size_t chunkSize;
|
size_t chunkSize = 0;
|
||||||
std::string sumBytes;
|
std::string sumBytes;
|
||||||
ClientLibBinaryInfo() : totalBytes(0), chunkCnt(0), chunkSize(0) {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::string& getStatusName(ClientLibStatus status) {
|
const std::string& getStatusName(ClientLibStatus status) {
|
||||||
|
|
|
@ -62,17 +62,13 @@ inline const std::string CLIENTLIB_ATTR_CHUNK_COUNT{ "chunkcount" };
|
||||||
inline const std::string CLIENTLIB_ATTR_CHUNK_SIZE{ "chunksize" };
|
inline const std::string CLIENTLIB_ATTR_CHUNK_SIZE{ "chunksize" };
|
||||||
|
|
||||||
struct ClientLibFilter {
|
struct ClientLibFilter {
|
||||||
bool matchAvailableOnly;
|
bool matchAvailableOnly = false;
|
||||||
bool matchPlatform;
|
bool matchPlatform = false;
|
||||||
bool matchCompatibleAPI;
|
bool matchCompatibleAPI = false;
|
||||||
bool matchNewerPackageVersion;
|
bool matchNewerPackageVersion = false;
|
||||||
ClientLibPlatform platformVal;
|
ClientLibPlatform platformVal = CLIENTLIB_UNKNOWN_PLATFORM;
|
||||||
int apiVersion;
|
int apiVersion = 0;
|
||||||
int numericPkgVersion;
|
int numericPkgVersion = 0;
|
||||||
|
|
||||||
ClientLibFilter()
|
|
||||||
: matchAvailableOnly(false), matchPlatform(false), matchCompatibleAPI(false), matchNewerPackageVersion(false),
|
|
||||||
platformVal(CLIENTLIB_UNKNOWN_PLATFORM), apiVersion(0) {}
|
|
||||||
|
|
||||||
ClientLibFilter& filterAvailable() {
|
ClientLibFilter& filterAvailable() {
|
||||||
matchAvailableOnly = true;
|
matchAvailableOnly = true;
|
||||||
|
|
Loading…
Reference in New Issue