Continuing with the change to the STL, the text function of the Token class was also modified to build the string into a standard string stream. Like with the text function of the RPN List class, the with indexes option argument was not being utilized, so it was removed.
For the Token class, the return value of the text function was changed to a standard string. Callers were modified accordingly for this change. Only one caller remains that expects a QString value, the delete operator function. This function will not been needed once smart (shared) pointers are used for token pointers.
The way the private text operand helper function was used in the text function was changed making a separate function unnecessary. This helper function surrounded the token text with vertical bars and only two call located were left once the with indexes feature was removed. Instead of setting the second string, the string was changed to a flag and at the end of the function, if set, the vertical bars and the token string are added to the string stream.
[branch cpp11 commit 47766746a1]
Thursday, September 4, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)