From 345c7b764f0721e9bbc993a3cd7f803fd42cf943 Mon Sep 17 00:00:00 2001 From: open-license-manager <rillf@maildrop.cc> Date: 周一, 15 9月 2014 06:58:38 +0800 Subject: [PATCH] moving files for refactoring --- src/library/license++.cpp | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/library/license++.cpp b/src/library/license++.cpp index 03f2f2c..8f913b0 100644 --- a/src/library/license++.cpp +++ b/src/library/license++.cpp @@ -17,8 +17,7 @@ } -DllExport void identify_pc(IDENTIFICATION_STRATEGY pc_id_method, - char chbuffer[PC_IDENTIFIER_SIZE + 1]) { +DllExport void identify_pc(IDENTIFICATION_STRATEGY pc_id_method, char chbuffer[PC_IDENTIFIER_SIZE + 1]) { } @@ -31,8 +30,8 @@ if (!it->has_expiry) { it->toLicenseInfo(license); break; - } else if (curLicense_exp < it->to_date) { - curLicense_exp = it->to_date; + } else if (curLicense_exp < it->expires_on()) { + curLicense_exp = it->expires_on(); it->toLicenseInfo(license); } } @@ -75,12 +74,12 @@ return result; } -DllExport enum EVENT_TYPE confirm_license(char * product, +DllExport EVENT_TYPE confirm_license(char * product, LicenseLocation licenseLocation) { return LICENSE_OK; } -DllExport enum EVENT_TYPE release_license(char * product, +DllExport EVENT_TYPE release_license(char * product, LicenseLocation licenseLocation) { return LICENSE_OK; } -- Gitblit v1.9.1