[Development] Use of Standard Library containers in Qt source code

Sune Vuorela nospam at vuorela.dk
Sat Jul 2 09:53:47 CEST 2016

On 2016-07-01, Thiago Macieira <thiago.macieira at intel.com> wrote:
> confusing because the next line has "isEmpty". When I read this code, I had to 
> wonder if that "empty" was a verb in the imperative, meaning the author was 
> trying to remove all elements from the container. 

Hah. I found some code in a large project the other day. The code is a
monstrosity of stl, mfc and qt code.
There was an empty() function. It returned void. and was not const.

Yes. it was clearing its internal collections and states.


More information about the Development mailing list