Ivan Čukić wrote:
> markdownpartfactory.cpp:45
> 
> Personal preference - use `auto` when you have `= new Something(:::)` on
> the right - no need for `Something` to be written twice:
>     Something* p = new Something(...)
> 
> The variable part can even go away - just return new MarkdownPart.
> 
> Similar lines exist in markdownpart.cpp, though there you use auto almost
> in all these cases.

IMHO, this just makes the code harder to read (as most uses of "auto").

        Kevin Kofler

Reply via email to