diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 14:41:36 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 14:41:36 +0300 |
commit | b7d947ebf69ea04c8cf4092f23a8689fd0f37b0e (patch) | |
tree | e4f77ef21e0374cd98dafe74ebb369ffffcb0770 /moses/TranslationOptionCollectionText.cpp | |
parent | f2960786074fcb0e7f91bfeebf29a00898745e38 (diff) |
change dynamic to static cast
Diffstat (limited to 'moses/TranslationOptionCollectionText.cpp')
-rw-r--r-- | moses/TranslationOptionCollectionText.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/TranslationOptionCollectionText.cpp b/moses/TranslationOptionCollectionText.cpp index 354d09f47..1d7cfd38f 100644 --- a/moses/TranslationOptionCollectionText.cpp +++ b/moses/TranslationOptionCollectionText.cpp @@ -75,7 +75,7 @@ void TranslationOptionCollectionText::ProcessUnknownWord(size_t sourcePos) */ bool TranslationOptionCollectionText::HasXmlOptionsOverlappingRange(size_t startPosition, size_t endPosition) const { - Sentence const& source=dynamic_cast<Sentence const&>(m_source); + Sentence const& source=static_cast<Sentence const&>(m_source); return source.XmlOverlap(startPosition,endPosition); } @@ -85,7 +85,7 @@ bool TranslationOptionCollectionText::HasXmlOptionsOverlappingRange(size_t start bool TranslationOptionCollectionText::ViolatesXmlOptionsConstraint(size_t startPosition, size_t endPosition, TranslationOption *transOpt) const { // skip if there is no overlap - Sentence const& source=dynamic_cast<Sentence const&>(m_source); + Sentence const& source=static_cast<Sentence const&>(m_source); if (!source.XmlOverlap(startPosition,endPosition)) { return false; } @@ -135,7 +135,7 @@ bool TranslationOptionCollectionText::ViolatesXmlOptionsConstraint(size_t startP */ void TranslationOptionCollectionText::CreateXmlOptionsForRange(size_t startPos, size_t endPos) { - Sentence const& source=dynamic_cast<Sentence const&>(m_source); + Sentence const& source=static_cast<Sentence const&>(m_source); InputPath &inputPath = GetInputPath(startPos,endPos); vector <TranslationOption*> xmlOptions; |