CppTools: Minor cleanup
CppTools: Minor cleanup

Replace repetitive condition with switch-case statement.

Change-Id: Ib022d6970257d054f47229b70c1c0db4b6f2e80c
Reviewed-by: Nikolai Kosjar <9571db158ca61a0d070db010803474231fa0cbab@digia.com>

xianian/qt-creator,farseerri/git_code,xianian/qt-creator,xianian/qt-creator,farseerri/git_code,amyvmiwei/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code,farseerri/git_code,Distrotech/qtcreator,kuba1/qtcreator,maui-packages/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,maui-packages/qt-creator,xianian/qt-creator,kuba1/qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,kuba1/qtcreator,kuba1/qtcreator,farseerri/git_code,kuba1/qtcreator,maui-packages/qt-creator,AltarBeastiful/qt-creator,farseerri/git_code,xianian/qt-creator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,Distrotech/qtcreator,kuba1/qtcreator,maui-packages/qt-creator,danimo/qt-creator,maui-packages/qt-creator,AltarBeastiful/qt-creator,Distrotech/qtcreator,Distrotech/qtcreator,AltarBeastiful/qt-creator,maui-packages/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,danimo/qt-creator,amyvmiwei/qt-creator,maui-packages/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,AltarBeastiful/qt-creator,danimo/qt-creator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,Distrotech/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,danimo/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,Distrotech/qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,danimo/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,farseerri/git_code