Skip to content

Commit

Permalink
Minor Version changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GamePad64 committed Feb 27, 2013
1 parent 9018fee commit 22a34d5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/common/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@

namespace p2pnet {

Version::Version() {}
Version::Version() {
this->major_version = 0;
this->minor_version = 0;
this->bugfix_version = 0;
}
Version::Version(unsigned short major_version, unsigned short minor_version, unsigned short bugfix_version) {
this->major_version = major_version;
this->minor_version = minor_version;
Expand All @@ -30,9 +34,7 @@ Version::Version(unsigned short major_version, unsigned short minor_version, uns
this->variant_version = variant_version;
}

Version::~Version() {
// TODO Auto-generated destructor stub
}
Version::~Version() {}

void Version::fromString(std::string version_s) {
char temp_ch;
Expand All @@ -51,7 +53,7 @@ std::string Version::toString() {
}

Version::Version(std::string version_s){
this->fromString(version_s);
fromString(version_s);
}

bool Version::operator==(Version& lhs) {
Expand Down

0 comments on commit 22a34d5

Please sign in to comment.