From 8d7d51f6a300d132110e18e4b884b10b9fbe3aa6 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周日, 03 5月 2020 19:43:13 +0800 Subject: [PATCH] api rename project_name->feature_name --- src/library/licensecc.cpp | 2 +- extern/license-generator | 2 +- src/inspector/inspector.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extern/license-generator b/extern/license-generator index 1b460c3..c19bf17 160000 --- a/extern/license-generator +++ b/extern/license-generator @@ -1 +1 @@ -Subproject commit 1b460c3bf32b849c5edeb4f8b9fc15c431996748 +Subproject commit c19bf172e8f364b4ec17a3fc8155ce82b48830ba diff --git a/src/inspector/inspector.cpp b/src/inspector/inspector.cpp index 1c4d0af..dd2d3e6 100644 --- a/src/inspector/inspector.cpp +++ b/src/inspector/inspector.cpp @@ -69,7 +69,7 @@ for (CSimpleIniA::Entry section : sections) { const string section_name(section.pItem, 15); if (section_name != LCC_PROJECT_NAME) { - std::copy(section_name.begin(), section_name.end(), callerInformation.project_name); + std::copy(section_name.begin(), section_name.end(), callerInformation.feature_name); LCC_EVENT_TYPE result = acquire_license(&callerInformation, &licLocation, &licenseInfo); if (result == LICENSE_OK) { cout << "project [" << section.pItem << "]: license OK" << endl; diff --git a/src/library/licensecc.cpp b/src/library/licensecc.cpp index 0573121..ea34b28 100644 --- a/src/library/licensecc.cpp +++ b/src/library/licensecc.cpp @@ -77,7 +77,7 @@ string project; size_t str_size; if (callerInformation != nullptr && - (str_size = license::mstrnlen_s(callerInformation->feature_name, sizeof callerInformation->project_name)) > 0) { + (str_size = license::mstrnlen_s(callerInformation->feature_name, sizeof callerInformation->feature_name)) > 0) { project = string(callerInformation->feature_name, str_size); } else { project = string(LCC_PROJECT_NAME); -- Gitblit v1.9.1