示例#1
0
bool operator>(const Version &one, const Version &two)
{
    if(Version::compareVersion(one.getMajor(), two.getMajor(),
                      one.getMinor(), two.getMinor(),
                      one.getMini(), two.getMini(),
                      one.getBuild(), two.getBuild()) == 1)
    {
        return true;
    }
    return false;
}
示例#2
0
Version::Version(const Version &other)
{
    m_major = other.getMajor();
    m_minor = other.getMinor();
    m_mini = other.getMini();
    m_build = other.getBuild();
}