Fix Style Issue in Build (#76)

A couple of variables had conflicting names and the inner scope was
shadowing the outer. Style checker was complaining. Deleted one inner
definition and renamed another variable.
This commit is contained in:
apldev2 2019-01-23 17:01:59 -05:00 committed by apldev4
parent 17d7dbd6f7
commit b40094373b
2 changed files with 1 additions and 2 deletions

View File

@ -63,7 +63,7 @@ Tpm2ToolsVersion Tpm2ToolsVersionChecker::findTpm2ToolsVersion() {
try {
return kVersionMap.at(version);
}
catch (const out_of_range& oor) {
catch (const out_of_range& outOfRange) {
// If no version found, version is unsupported, throw exception
stringstream ss;
ss << "Unsupported Tpm2 Tools Version Detected: " << version;

View File

@ -86,7 +86,6 @@ namespace file_utils {
stringstream ss;
ifstream t(filename);
if (!t.good()) {
stringstream ss;
ss << "Unable to open file: " << filename;
throw HirsRuntimeException(ss.str(),
"Utils.cpp::file_utils::fileToString");