Skip to content

Commit

Permalink
Fixed stupid crash error in 2.02
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@167 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
theraysmith committed Apr 22, 2008
1 parent a4d7523 commit 3cf46f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ccmain/varabled.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class VariableContent : public ELIST_LINK {
static VariableContent* GetVariableContentById(int id);

// Constructors for the various VarTypes.
VariableContent() {
}
VariableContent(STRING_VARIABLE* it);
VariableContent(INT_VARIABLE* it);
VariableContent(BOOL_VARIABLE* it);
Expand Down
3 changes: 2 additions & 1 deletion ccutil/elst.h
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,8 @@ ELIST_LINK* old_element) /*source link*/ \
{ \
CLASSNAME* new_element; \
\
new_element = new CLASSNAME(*reinterpret_cast<CLASSNAME*>(old_element)); \
new_element = new CLASSNAME; \
*new_element = *reinterpret_cast<CLASSNAME*>(old_element); \
return (ELIST_LINK*) new_element; \
}

Expand Down

0 comments on commit 3cf46f2

Please sign in to comment.