From 0ec4d68600b83d41d2e48ad35d18e2a00f234619 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周六, 21 9月 2019 01:34:22 +0800 Subject: [PATCH] Merge branch 'develop' of https://github.com/open-license-manager/open-license-manager into develop --- src/library/license++.cpp | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/library/license++.cpp b/src/library/license++.cpp index 8f913b0..f9cc7c7 100644 --- a/src/library/license++.cpp +++ b/src/library/license++.cpp @@ -13,17 +13,17 @@ #include "LicenseReader.h" using namespace std; -DllExport void print_error(char out_buffer[256], LicenseInfo* licenseInfo) { +void print_error(char out_buffer[256], LicenseInfo* licenseInfo) { } -DllExport void identify_pc(IDENTIFICATION_STRATEGY pc_id_method, char chbuffer[PC_IDENTIFIER_SIZE + 1]) { +void identify_pc(IDENTIFICATION_STRATEGY pc_id_method, char chbuffer[PC_IDENTIFIER_SIZE + 1]) { } static void mergeLicenses(vector<license::FullLicenseInfo> licenses, LicenseInfo* license) { - if (license != NULL) { + if (license != nullptr) { time_t curLicense_exp = 0; for (auto it = licenses.begin(); it != licenses.end(); it++) { //choose the license that expires later... @@ -68,18 +68,18 @@ } else { result = er.getLastFailure()->event_type; } - if (license != NULL) { + if (license != nullptr) { er.exportLastEvents(license->status, 5); } return result; } -DllExport EVENT_TYPE confirm_license(char * product, +EVENT_TYPE confirm_license(char * product, LicenseLocation licenseLocation) { return LICENSE_OK; } -DllExport EVENT_TYPE release_license(char * product, +EVENT_TYPE release_license(char * product, LicenseLocation licenseLocation) { return LICENSE_OK; } -- Gitblit v1.9.1