From 91e1b0675d531e87a8866ab6595692a3fa52c322 Mon Sep 17 00:00:00 2001
From: Gabriele Contini <gcontini@users.noreply.github.com>
Date: 周六, 14 12月 2019 13:56:41 +0800
Subject: [PATCH] Merge pull request #69 from open-license-manager/feature/issue_licenses_42

---
 src/library/locate/EnvironmentVarLocation.cpp |   25 ++++++++++---------------
 1 files changed, 10 insertions(+), 15 deletions(-)

diff --git a/src/library/locate/EnvironmentVarLocation.cpp b/src/library/locate/EnvironmentVarLocation.cpp
index a904b9a..5615482 100644
--- a/src/library/locate/EnvironmentVarLocation.cpp
+++ b/src/library/locate/EnvironmentVarLocation.cpp
@@ -5,7 +5,7 @@
  *      Author: Gabriele Contini
  */
 
-#include <build_properties.h>
+#include <licensecc_properties.h>
 
 #include "../base/FileUtils.hpp"
 #include "../base/StringUtils.h"
@@ -15,26 +15,21 @@
 namespace locate {
 using namespace std;
 
-EnvironmentVarLocation::EnvironmentVarLocation() :
-		LocatorStrategy("EnvironmentVarLocation") {
-}
+EnvironmentVarLocation::EnvironmentVarLocation() : LocatorStrategy("EnvironmentVarLocation") {}
 
-EnvironmentVarLocation::~EnvironmentVarLocation() {
-}
+EnvironmentVarLocation::~EnvironmentVarLocation() {}
 
-const vector<string> EnvironmentVarLocation::license_locations(
-		EventRegistry &eventRegistry) {
+const vector<string> EnvironmentVarLocation::license_locations(EventRegistry &eventRegistry) {
 	vector<string> licenseFileFoundWithEnvVariable;
 
 	const string varName(LICENSE_LOCATION_ENV_VAR);
 	if (varName.length() > 0) {
-		//var name is defined in header files.
+		// var name is defined in header files.
 		char *env_var_value = getenv(LICENSE_LOCATION_ENV_VAR);
 		if (env_var_value != nullptr && env_var_value[0] != '\0') {
-			const vector<string> declared_positions = license::split_string(
-					string(env_var_value), ';');
-			licenseFileFoundWithEnvVariable = license::filter_existing_files(
-					declared_positions, eventRegistry, LICENSE_LOCATION_ENV_VAR);
+			const vector<string> declared_positions = license::split_string(string(env_var_value), ';');
+			licenseFileFoundWithEnvVariable =
+				license::filter_existing_files(declared_positions, eventRegistry, LICENSE_LOCATION_ENV_VAR);
 		} else {
 			eventRegistry.addEvent(ENVIRONMENT_VARIABLE_NOT_DEFINED);
 		}
@@ -42,5 +37,5 @@
 	return licenseFileFoundWithEnvVariable;
 }
 
-}
-}
+}  // namespace locate
+}  // namespace license

--
Gitblit v1.9.1