Menu

#45 Fix PageManager::getPageID()

0.4
open
Marko
None
2014-08-25
2014-07-31
No

D:\Projects\SourceLine\sources\sourcelineproject-code\src\app\ui\pagemanager.cpp:68: warning: C4715: 'PageManager::getPageID' : not all control paths return a value

see code:
for(QMap<int,int>::iterator iter = mPageHash.begin(); iter!=mPageHash.end(); iter++)
if(iter.value() == index)
return iter.key();
what if "iter.value() == index" will never true or mPageHash will be empty? It will nor return any values!

Discussion

  • Alex Chmykhalo

    Alex Chmykhalo - 2014-08-25

    Please, update status of the ticket.

     
  • Alex Chmykhalo

    Alex Chmykhalo - 2014-08-25
    • Milestone: 0.3 --> 0.4
     

Log in to post a comment.