MVC2.0: Use member initializers in ClientLibManagement structs
This commit is contained in:
parent
2a98b38a56
commit
6300447e9d
|
@ -39,11 +39,10 @@
|
|||
namespace ClientLibManagement {
|
||||
|
||||
struct ClientLibBinaryInfo {
|
||||
size_t totalBytes;
|
||||
size_t chunkCnt;
|
||||
size_t chunkSize;
|
||||
size_t totalBytes = 0;
|
||||
size_t chunkCnt = 0;
|
||||
size_t chunkSize = 0;
|
||||
std::string sumBytes;
|
||||
ClientLibBinaryInfo() : totalBytes(0), chunkCnt(0), chunkSize(0) {}
|
||||
};
|
||||
|
||||
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" };
|
||||
|
||||
struct ClientLibFilter {
|
||||
bool matchAvailableOnly;
|
||||
bool matchPlatform;
|
||||
bool matchCompatibleAPI;
|
||||
bool matchNewerPackageVersion;
|
||||
ClientLibPlatform platformVal;
|
||||
int apiVersion;
|
||||
int numericPkgVersion;
|
||||
|
||||
ClientLibFilter()
|
||||
: matchAvailableOnly(false), matchPlatform(false), matchCompatibleAPI(false), matchNewerPackageVersion(false),
|
||||
platformVal(CLIENTLIB_UNKNOWN_PLATFORM), apiVersion(0) {}
|
||||
bool matchAvailableOnly = false;
|
||||
bool matchPlatform = false;
|
||||
bool matchCompatibleAPI = false;
|
||||
bool matchNewerPackageVersion = false;
|
||||
ClientLibPlatform platformVal = CLIENTLIB_UNKNOWN_PLATFORM;
|
||||
int apiVersion = 0;
|
||||
int numericPkgVersion = 0;
|
||||
|
||||
ClientLibFilter& filterAvailable() {
|
||||
matchAvailableOnly = true;
|
||||
|
|
Loading…
Reference in New Issue