commit | db4da5e4fb1afc494384044b97b6d1b77899ead5 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Fri Jun 15 11:37:52 2018 -0400 |
committer | Alex Afanasyev <aa@cs.fiu.edu> | Sun Jun 17 09:29:34 2018 -0700 |
tree | fd075648a78dcf9a3ca28f5f5e3d2c12b7c46406 | |
parent | 634a62bb74776e1044111bee8713c3a70095dee7 [diff] [blame] |
Improve and simplify code with modern C++ features Change-Id: I28d84df3087492ab2ecbeb91169a2cde12c9e31e
diff --git a/src/security/tpm/back-end-file.cpp b/src/security/tpm/back-end-file.cpp index 7c836d2..a560fad 100644 --- a/src/security/tpm/back-end-file.cpp +++ b/src/security/tpm/back-end-file.cpp
@@ -129,7 +129,7 @@ return keyHandle; } catch (const std::runtime_error& e) { - BOOST_THROW_EXCEPTION(Error(std::string("Cannot write key to disk: ") + e.what())); + BOOST_THROW_EXCEPTION(Error("Cannot write key to disk: "s + e.what())); } }