diff options
author | Nicolás Alvarez <nicolas.alvarez@gmail.com> | 2011-03-16 17:37:22 -0300 |
---|---|---|
committer | Nicolás Alvarez <nicolas.alvarez@gmail.com> | 2011-03-16 17:37:22 -0300 |
commit | 34f881571e48b6fb71f687944ff4420d589a6d22 (patch) | |
tree | 17482912210a5412e926d269e11f528f42f99494 | |
parent | d5603d03c2ab105c60e6cb43a754b5285e21b667 (diff) | |
download | svn2git-34f881571e48b6fb71f687944ff4420d589a6d22.tar svn2git-34f881571e48b6fb71f687944ff4420d589a6d22.tar.gz svn2git-34f881571e48b6fb71f687944ff4420d589a6d22.tar.bz2 svn2git-34f881571e48b6fb71f687944ff4420d589a6d22.tar.xz svn2git-34f881571e48b6fb71f687944ff4420d589a6d22.zip |
Remove unnecessary const casts.
-rw-r--r-- | src/svn.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/svn.cpp b/src/svn.cpp index d817907..09495be 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -365,7 +365,7 @@ static bool wasDir(svn_fs_t *fs, int revnum, const char *pathname, apr_pool_t *p return is_dir; } -time_t get_epoch(char *svn_date) +time_t get_epoch(const char* svn_date) { struct tm tm; memset(&tm, 0, sizeof tm); @@ -493,9 +493,9 @@ int SvnRevision::fetchRevProps() svn_string_t *svndate = (svn_string_t*)apr_hash_get(revprops, "svn:date", APR_HASH_KEY_STRING); svn_string_t *svnlog = (svn_string_t*)apr_hash_get(revprops, "svn:log", APR_HASH_KEY_STRING); - log = (char *)svnlog->data; - authorident = svnauthor ? identities.value((char *)svnauthor->data) : QByteArray(); - epoch = get_epoch((char*)svndate->data); + log = svnlog->data; + authorident = svnauthor ? identities.value(svnauthor->data) : QByteArray(); + epoch = get_epoch(svndate->data); if (authorident.isEmpty()) { if (!svnauthor || svn_string_isempty(svnauthor)) authorident = "nobody <nobody@localhost>"; |