From 91dda1bb3c6b41d1aa142affed77758e6022d92c Mon Sep 17 00:00:00 2001 From: Maximilien Siavelis <maximilien.siavelis@simulease.com> Date: 周日, 07 1月 2018 20:01:32 +0800 Subject: [PATCH] fix header consistency --- 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