Merge two mini-functions for the hard coded list


It is done for the following reason:

1) Consistency with the unix backend of the QSerialPort class, where the
serialPortLockFilePath free function is also like this.

2) There is no point in having a separate free function for initializing a
variable when it is only used in one place.

3) It is less abstraction.

4) It is negligibly faster.

5) It is still a small enough free function, and naturally fits the one page
maximum limit for a function which is the general recommendation in projects.

6) Last, but not least: It also makes the code shorter and more concise.

Change-Id: Ie07f06521e11038bdd3cc504a56cadcf00e68269
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
commit0a57242996ba188e02a98470a25150aeb7887e95
parent516b98aed0abe8c093e90746d0ab3401ad0a59b6
authorLaszlo Papp <lpapp@kde.org>
committerThe Qt Project <gerrit-noreply@qt-project.org>
commit timeSun, 24 Nov 2013 18:50:54 +0100