1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 10:16:40 +02:00

Added some useful Anope::Version functions to prevent some files from unnecessarily rebuilding on every make

This commit is contained in:
DukePyrolator
2011-03-13 03:42:30 -04:00
committed by Adam
parent 15a833283b
commit 3fbf39b25d
14 changed files with 71 additions and 61 deletions
+4 -4
View File
@@ -72,7 +72,7 @@ void Module::SetAuthor(const Anope::string &nauthor)
this->author = nauthor;
}
Version::Version(unsigned vMajor, unsigned vMinor, unsigned vBuild) : Major(vMajor), Minor(vMinor), Build(vBuild)
Version::Version(int vMajor, int vMinor, int vBuild) : Major(vMajor), Minor(vMinor), Build(vBuild)
{
}
@@ -80,17 +80,17 @@ Version::~Version()
{
}
unsigned Version::GetMajor() const
int Version::GetMajor() const
{
return this->Major;
}
unsigned Version::GetMinor() const
int Version::GetMinor() const
{
return this->Minor;
}
unsigned Version::GetBuild() const
int Version::GetBuild() const
{
return this->Build;
}