Skip to content

Commit

Permalink
Fix Style Issue in Build (#76)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
apldev2 authored and apldev4 committed Jan 23, 2019
1 parent 17d7dbd commit b400943
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion HIRS_ProvisionerTPM2/src/Tpm2ToolsUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion HIRS_ProvisionerTPM2/src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit b400943

Please sign in to comment.