From f1f777630f85e58b01b472da23e3f72a71dd1f49 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 1 Apr 2011 11:03:46 +0800 Subject: refine code --- src/storage/ngram.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/storage/ngram.cpp') diff --git a/src/storage/ngram.cpp b/src/storage/ngram.cpp index 8ea8334..c6b1736 100644 --- a/src/storage/ngram.cpp +++ b/src/storage/ngram.cpp @@ -38,15 +38,15 @@ SingleGram::SingleGram(void * buffer, size_t length){ m_chunk.set_chunk(buffer, length, NULL); } -bool SingleGram::set_total_freq(guint32 m_total){ +bool SingleGram::set_total_freq(guint32 total){ char * buf_begin = (char *)m_chunk.begin(); - *((guint32 *)buf_begin) = m_total; + *((guint32 *)buf_begin) = total; return true; } -bool SingleGram::get_total_freq(guint32 & m_total){ +bool SingleGram::get_total_freq(guint32 & total){ char * buf_begin = (char *)m_chunk.begin(); - m_total = *((guint32 *)buf_begin); + total = *((guint32 *)buf_begin); return true; } -- cgit