C++: Fix while-loop from CppEditorWidget
C++: Fix while-loop from CppEditorWidget

Caused while to run forever when not checking
cursor.movePosition() return value.

Change-Id: Ie8211a477ab1889d4583d3b01e1a200d9905fd6d
Reviewed-by: Leandro Melo <8f144cd741810d8c7b648cacf5b9b2f4e2ebcc1b@nokia.com>

farseerri/git_code,kuba1/qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,malikcjm/qtcreator,amyvmiwei/qt-creator,hdweiss/qt-creator-visualizer,richardmg/qtcreator,KDE/android-qt-creator,farseerri/git_code,amyvmiwei/qt-creator,maui-packages/qt-creator,KDE/android-qt-creator,xianian/qt-creator,azat/qtcreator,KDAB/KDAB-Creator,duythanhphan/qt-creator,ostash/qt-creator-i18n-uk,colede/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,danimo/qt-creator,maui-packages/qt-creator,amyvmiwei/qt-creator,AltarBeastiful/qt-creator,syntheticpp/qt-creator,richardmg/qtcreator,KDAB/KDAB-Creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,ostash/qt-creator-i18n-uk,xianian/qt-creator,xianian/qt-creator,azat/qtcreator,maui-packages/qt-creator,syntheticpp/qt-creator,azat/qtcreator,hdweiss/qt-creator-visualizer,KDAB/KDAB-Creator,darksylinc/qt-creator,azat/qtcreator,malikcjm/qtcreator,maui-packages/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,syntheticpp/qt-creator,KDE/android-qt-creator,kuba1/qtcreator,kuba1/qtcreator,duythanhphan/qt-creator,duythanhphan/qt-creator,jonnor/qt-creator,AltarBeastiful/qt-creator,kuba1/qtcreator,malikcjm/qtcreator,xianian/qt-creator,darksylinc/qt-creator,jonnor/qt-creator,jonnor/qt-creator,martyone/sailfish-qtcreator,ostash/qt-creator-i18n-uk,richardmg/qtcreator,Distrotech/qtcreator,darksylinc/qt-creator,martyone/sailfish-qtcreator,duythanhphan/qt-creator,malikcjm/qtcreator,jonnor/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,KDAB/KDAB-Creator,malikcjm/qtcreator,colede/qtcreator,farseerri/git_code,darksylinc/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,duythanhphan/qt-creator,maui-packages/qt-creator,danimo/qt-creator,malikcjm/qtcreator,danimo/qt-creator,colede/qtcreator,richardmg/qtcreator,danimo/qt-creator,azat/qtcreator,KDE/android-qt-creator,martyone/sailfish-qtcreator,Distrotech/qtcreator,AltarBeastiful/qt-creator,farseerri/git_code,AltarBeastiful/qt-creator,syntheticpp/qt-creator,darksylinc/qt-creator,danimo/qt-creator,colede/qtcreator,KDE/android-qt-creator,darksylinc/qt-creator,richardmg/qtcreator,omniacreator/qtcreator,martyone/sailfish-qtcreator,maui-packages/qt-creator,KDE/android-qt-creator,xianian/qt-creator,syntheticpp/qt-creator,KDE/android-qt-creator,colede/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,omniacreator/qtcreator,AltarBeastiful/qt-creator,kuba1/qtcreator,colede/qtcreator,darksylinc/qt-creator,KDE/android-qt-creator,amyvmiwei/qt-creator,richardmg/qtcreator,Distrotech/qtcreator,KDAB/KDAB-Creator,xianian/qt-creator,omniacreator/qtcreator,ostash/qt-creator-i18n-uk,duythanhphan/qt-creator,farseerri/git_code,azat/qtcreator,Distrotech/qtcreator,duythanhphan/qt-creator,hdweiss/qt-creator-visualizer,danimo/qt-creator,darksylinc/qt-creator,kuba1/qtcreator,syntheticpp/qt-creator,richardmg/qtcreator,danimo/qt-creator,Distrotech/qtcreator,malikcjm/qtcreator,omniacreator/qtcreator,colede/qtcreator,jonnor/qt-creator,danimo/qt-creator,hdweiss/qt-creator-visualizer,ostash/qt-creator-i18n-uk,syntheticpp/qt-creator,jonnor/qt-creator,omniacreator/qtcreator,omniacreator/qtcreator,hdweiss/qt-creator-visualizer,xianian/qt-creator,amyvmiwei/qt-creator,hdweiss/qt-creator-visualizer,omniacreator/qtcreator,xianian/qt-creator,ostash/qt-creator-i18n-uk,AltarBeastiful/qt-creator,KDAB/KDAB-Creator,ostash/qt-creator-i18n-uk,AltarBeastiful/qt-creator,farseerri/git_code,xianian/qt-creator,farseerri/git_code,AltarBeastiful/qt-creator,maui-packages/qt-creator