From 34f881571e48b6fb71f687944ff4420d589a6d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Alvarez?= Date: Wed, 16 Mar 2011 17:37:22 -0300 Subject: Remove unnecessary const casts. --- src/svn.cpp | 8 ++++---- 1 file 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 "; -- cgit v1.2.1