uninitialized variables and double include

This commit is contained in:
Matthias Huck 2014-08-08 16:27:17 +01:00
parent d75c4e1ae5
commit 33992f9af5
2 changed files with 2 additions and 4 deletions

View File

@ -248,7 +248,7 @@ int ExtractGHKM::Main(int argc, char *argv[])
const std::vector<const Subgraph *> &rules = (*p)->GetRules();
REO_POS l2rOrientation, r2lOrientation;
REO_POS l2rOrientation=UNKNOWN, r2lOrientation=UNKNOWN;
if (options.phraseOrientation && !rules.empty()) {
int sourceSpanBegin = *((*p)->GetSpan().begin());
int sourceSpanEnd = *((*p)->GetSpan().rbegin());

View File

@ -19,11 +19,9 @@
#include "PhraseOrientation.h"
#include <sstream>
#include <iostream>
#include <sstream>
#include <limits>
#include <sstream>
#include <boost/assign/list_of.hpp>
@ -189,7 +187,7 @@ const std::string PhraseOrientation::GetOrientationInfoString(int startF, int en
const std::string PhraseOrientation::GetOrientationInfoString(int startF, int startE, int endF, int endE, REO_DIR direction) const
{
REO_POS hierPrevOrient, hierNextOrient;
REO_POS hierPrevOrient=UNKNOWN, hierNextOrient=UNKNOWN;
bool connectedLeftTopP = IsAligned( startF-1, startE-1 );
bool connectedRightTopP = IsAligned( endF+1, startE-1 );