core: prevent allocations when looking up an existing Core::Id
core: prevent allocations when looking up an existing Core::Id

Change-Id: I7bd2f83ffc6a57135aab9f76ff929eca48d16885
Reviewed-by: Eike Ziller <c142da16c73a95a82d35191bcc55b22835617128@nokia.com>

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