diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-19 00:30:19 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-19 00:30:19 +0000 |
commit | 62b5e0ae95ed40d183dc2fd7f78b7d0e8f2973ce (patch) | |
tree | 433de036059866f395867948b2a104ade9bb5741 /cryptlib.h | |
parent | 2c43c8505f12d744cd8d93c1ef692962bd8da849 (diff) | |
download | cryptopp-62b5e0ae95ed40d183dc2fd7f78b7d0e8f2973ce.tar.gz |
fix passing std::string by value
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@105 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'cryptlib.h')
-rw-r--r-- | cryptlib.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -174,7 +174,7 @@ public: class CRYPTOPP_DLL OS_Error : public Exception { public: - OS_Error(ErrorType errorType, const std::string s, const std::string& operation, int errorCode) + OS_Error(ErrorType errorType, const std::string &s, const std::string& operation, int errorCode) : Exception(errorType, s), m_operation(operation), m_errorCode(errorCode) {} ~OS_Error() throw() {} @@ -225,7 +225,7 @@ public: class CRYPTOPP_DLL ValueTypeMismatch : public InvalidArgument { public: - ValueTypeMismatch(std::string name, const std::type_info &stored, const std::type_info &retrieving) + ValueTypeMismatch(const std::string &name, const std::type_info &stored, const std::type_info &retrieving) : InvalidArgument("NameValuePairs: type mismatch for '" + name + "', stored '" + stored.name() + "', trying to retrieve '" + retrieving.name() + "'") , m_stored(stored), m_retrieving(retrieving) {} |