From 27697627cb0c3f3af735aebb892c7bad111fe6db Mon Sep 17 00:00:00 2001 From: lurumdare <8020186+lurumdare@users.noreply.github.com> Date: 周六, 07 9月 2019 20:40:25 +0800 Subject: [PATCH] const everywhere (#30) --- test/functional/volid_test.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/volid_test.cpp b/test/functional/volid_test.cpp index f8b0d8d..f63d2b3 100644 --- a/test/functional/volid_test.cpp +++ b/test/functional/volid_test.cpp @@ -21,9 +21,9 @@ const string licLocation(PROJECT_TEST_TEMP_DIR "/volid_license.lic"); PcSignature identifier_out; - IDENTIFICATION_STRATEGY strategy = IDENTIFICATION_STRATEGY::ETHERNET; + const IDENTIFICATION_STRATEGY strategy = IDENTIFICATION_STRATEGY::ETHERNET; BOOST_TEST_CHECKPOINT("Before generate"); - FUNCTION_RETURN generate_ok = generate_user_pc_signature(identifier_out, + const FUNCTION_RETURN generate_ok = generate_user_pc_signature(identifier_out, strategy); BOOST_TEST_CHECKPOINT("After generate signature"); BOOST_ASSERT(generate_ok == FUNCTION_RETURN::FUNC_RET_OK); @@ -39,7 +39,7 @@ licenseLocation.openFileNearModule = false; licenseLocation.licenseFileLocation = licLocation.c_str(); licenseLocation.environmentVariableName = ""; - EVENT_TYPE result = acquire_license("TEST", licenseLocation, &license); + const EVENT_TYPE result = acquire_license("TEST", licenseLocation, &license); BOOST_CHECK_EQUAL(result, LICENSE_OK); BOOST_CHECK_EQUAL(license.has_expiry, false); BOOST_CHECK_EQUAL(license.linked_to_pc, true); -- Gitblit v1.9.1