[Qt-creator] Collapsing problem

Thorbjørn Lindeijer thorbjorn.lindeijer at nokia.com
Mon Nov 3 15:03:07 CET 2008


ext GreyGeek wrote:
> My bad.   :-[  :-!
> 
> Ignore the first example.  The original version of the if test was
> "if (firstPrint = true){"
> which compiled but gave the following message:
> "suggest parentheses around assignment used as truth value"
> When I noticed the error, which was flagged as a "suggestion", and 
> changed it to
> "if (firstPrint == true){"
> the message did not reappear.
> 
> The second problem which prevents collapsing of a function still exists.

You may want to leave that out entirely, and make it

"if (firstPrint) {"

:-)

> The second problem which prevents collapsing of a function still exists.

Apparently strings that are split up like that aren't supported yet, 
we'll look into it. Note that another short and valid way to write such 
a string is:

persQryPrep.append(this->persinfodb);
persQryPrep.append("SET wholename = :wholename, "
                    " app_type = :app_type, "
                    " hec = :hec, yoba = :yoba, "
                    " yobaok = :yobaok, "
                    " ms = :ms, sname = :sname "
                    "WHERE proprty_id = :proprty_id AND ssn = :ssn");

Regards,
Bjørn

-- 
Thorbjørn Lindeijer
Software Engineer
Nokia, Qt Software



More information about the Qt-creator-old mailing list