diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-05-05 02:15:11 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-05-05 02:15:11 +0000 |
commit | 750c2aa1d078b97c222ebe54da350dd8bf24de82 (patch) | |
tree | 8057070d790d4738b0145430b88557c6236a2456 /bench.cpp | |
parent | 7df5970ca2b1776fb7a5c246e073187e31b465e4 (diff) | |
download | cryptopp-750c2aa1d078b97c222ebe54da350dd8bf24de82.tar.gz |
fix compile with Sun CC
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@358 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'bench.cpp')
-rw-r--r-- | bench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -234,7 +234,7 @@ void BenchMarkByName(const char *factoryName, size_t keyLength = 0, const char * } template <class T> -void BenchMarkByNameKeyLess(const char *factoryName, char *displayName=NULL, const NameValuePairs ¶ms = g_nullNameValuePairs, T *x=NULL) +void BenchMarkByNameKeyLess(const char *factoryName, const char *displayName=NULL, const NameValuePairs ¶ms = g_nullNameValuePairs, T *x=NULL) { std::string name = factoryName; if (displayName) @@ -252,7 +252,7 @@ void BenchmarkAll(double t, double hertz) g_allocatedTime = t; g_hertz = hertz; - char *cpb, *cpk; + const char *cpb, *cpk; if (g_hertz) { cpb = "<TH>Cycles Per Byte"; |