[irstlm] 86/126: minor change

Giulio Paci giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:46:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

giuliopaci-guest pushed a commit to annotated tag adaptiveLM.v0.1
in repository irstlm.

commit 127c3540b35871a5bac4092b2ba3a8da682abe61
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Fri Sep 18 08:56:58 2015 +0200

    minor change
---
 src/n_gram.cpp | 2 +-
 src/n_gram.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/n_gram.cpp b/src/n_gram.cpp
index 276e6bc..1a9352f 100644
--- a/src/n_gram.cpp
+++ b/src/n_gram.cpp
@@ -50,7 +50,7 @@ ngram::ngram(dictionary* d,int sz)
   memset(path,0,sizeof(char *)*MAX_NGRAM);
 }
 
-ngram::ngram(ngram& ng)
+ngram::ngram(const ngram& ng)
 {
   size=ng.size;
   freq=ng.freq;
diff --git a/src/n_gram.h b/src/n_gram.h
index ccfa85c..91de1ec 100644
--- a/src/n_gram.h
+++ b/src/n_gram.h
@@ -63,7 +63,7 @@ public:
   int  isym;             // last interruption symbol
 
   ngram(dictionary* d,int sz=0);
-  ngram(ngram& ng);
+  ngram(const ngram& ng);
 
   inline int *wordp() { // n-gram pointer
     return wordp(size);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/irstlm.git



More information about the debian-science-commits mailing list