Skip to content

Commit ce2d3f1

Browse files
committed
parameeter can be declared const
1 parent a6eea25 commit ce2d3f1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

include/mbt/Sentence.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ namespace Tagger {
7373
UnicodeHash& );
7474
bool nextpat( MatchAction&,
7575
std::vector<int>&,
76-
UnicodeHash&,
76+
const UnicodeHash&,
7777
UnicodeHash&,
7878
unsigned int,
7979
const std::vector<int>& ) const;

src/Sentence.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ namespace Tagger {
232232
}
233233

234234
bool sentence::nextpat( MatchAction& Action, vector<int>& Pat,
235-
UnicodeHash& wordlist, UnicodeHash& TheLex,
235+
const UnicodeHash& wordlist,
236+
UnicodeHash& TheLex,
236237
unsigned int position,
237238
const vector<int>& old_pat ) const {
238239
Pat.clear();

0 commit comments

Comments
 (0)