From cd20fb3432498b8871401bdd65a143197e2a6538 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 25 Mar 2009 23:42:57 +0100 Subject: A host of code style fixes Mostly putting & and * in the right place and making some getters const. --- src/utils/sha256.cpp | 2 +- src/utils/sha256.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/sha256.cpp b/src/utils/sha256.cpp index 82d1fc5c..ffb1686b 100644 --- a/src/utils/sha256.cpp +++ b/src/utils/sha256.cpp @@ -269,7 +269,7 @@ std::string SHA256Hash(const char *src, int len) return hash; } -std::string sha256(const std::string& string) +std::string sha256(const std::string &string) { return SHA256Hash(string.c_str(), string.length()); } diff --git a/src/utils/sha256.h b/src/utils/sha256.h index 0aa5ba1f..d0543cbf 100644 --- a/src/utils/sha256.h +++ b/src/utils/sha256.h @@ -30,6 +30,6 @@ * @param string the string to create the SHA-256 hash for * @return the SHA-256 hash for the given string. */ -std::string sha256(const std::string& string); +std::string sha256(const std::string &string); #endif // UTILS_SHA256_H -- cgit v1.2.3-70-g09d2