Changeset - 776782756b6f
[Not reviewed]
Hasan Yavuz Ă–ZDERYA - 8 years ago 2017-08-20 12:25:49
hy@ozderya.net
fix build error due to undefined `CurrentVersion`, all revisions back to 617 are broken
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/versionnumber.h
Show inline comments
 
@@ -20,25 +20,27 @@
 
#ifndef VERSIONNUMBER_H
 
#define VERSIONNUMBER_H
 

	
 
#include <QString>
 

	
 
struct VersionNumber
 
{
 
    unsigned major = 0;
 
    unsigned minor = 0;
 
    unsigned patch = 0;
 

	
 
    VersionNumber(unsigned mj=0, unsigned mn=0, unsigned pt=0);
 

	
 
    /// Convert version number to string.
 
    QString toString() const;
 

	
 
    /// Extracts the version number from given string.
 
    static bool extract(const QString& str, VersionNumber& number);
 
};
 

	
 
bool operator==(const VersionNumber& lhs, const VersionNumber& rhs);
 
bool operator<(const VersionNumber& lhs, const VersionNumber& rhs);
 
bool operator>(const VersionNumber& lhs, const VersionNumber& rhs);
 

	
 
const VersionNumber CurrentVersion(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
 

	
 
#endif // VERSIONNUMBER_H
0 comments (0 inline, 0 general)