- Tizen version policy doesn't display patch version if it is 0.
But user can "type" it into api-version of application and it cause
compare issue on VersionNumber class.
- So add 0 as patch or minor version if it is not provided by default
Change-Id: Ic21e16d3cf8642b89ab98bedd79bbe529dde2df8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
}
parts_.push_back(value);
}
+
+ for (int i = 3 - parts_.size(); i > 0; i--)
+ parts_.push_back(0);
}
bool VersionNumber::IsValid() const {
* 0 <= b <= 255
* 0 <= c <= 65535
*
- * b and c part are optional
+ * b and c part are optional but code will consider as 0 if doesn't exists
*
* @return true if version is ok
*/