mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
Fix virtual destructors
This commit is contained in:
parent
30c3175d14
commit
8e23e441c3
@ -41,6 +41,8 @@ public:
|
||||
Phrase()
|
||||
{}
|
||||
|
||||
virtual ~Phrase() {}
|
||||
|
||||
void AddWord(WordPtr word);
|
||||
void AddWord(WordPtr word, size_t pos);
|
||||
|
||||
|
@ -41,7 +41,7 @@ class Word
|
||||
{
|
||||
friend std::ostream& operator<<(std::ostream&, const Word&);
|
||||
|
||||
protected:
|
||||
private:
|
||||
bool m_isNonTerminal;
|
||||
UINT64 m_vocabId;
|
||||
|
||||
@ -76,7 +76,7 @@ public:
|
||||
const Vocab &vocab,
|
||||
Moses::Word &overwrite) const;
|
||||
|
||||
virtual void DebugPrint(std::ostream &out, const Vocab &vocab) const;
|
||||
void DebugPrint(std::ostream &out, const Vocab &vocab) const;
|
||||
|
||||
int Compare(const Word &compare) const;
|
||||
bool operator<(const Word &compare) const;
|
||||
|
Loading…
Reference in New Issue
Block a user