From 64e1c06e9d5d238170041975bddd8de81a5ef6cc Mon Sep 17 00:00:00 2001 From: petr000 Date: Sun, 10 Apr 2011 22:17:05 +0200 Subject: [PATCH] Correction of an error in finding transitions. End of the destination was cut off. --- src/stringoper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stringoper.h b/src/stringoper.h index 81a227d..b3a8c94 100644 --- a/src/stringoper.h +++ b/src/stringoper.h @@ -320,7 +320,8 @@ class StringDecl line = get_next_base(line); } } - return trans.substr(0,trans.length()-1); + if(trans[trans.length()-1]==';') return trans.substr(0,trans.length()-1); + else return trans; } bool find_events(const CXXRecordDecl *cRecDecl, std::string line) // test if the decl is decl of event { -- 2.39.2