- there is no need to pre-populate the item view; it will be populated upon activation;
- removed branching & multiple returns in FileWatcher::FileHasChanged();
Change-Id: I47a92d5f0e3d84701f1688ba083f4a6850b6d909
Signed-off-by: György Straub <g.straub@partner.samsung.com>
}
else
{
- if(buf.st_mtime > mLastTime)
- {
- mLastTime = buf.st_mtime;
- return true;
- }
- else
- {
- mLastTime = buf.st_mtime;
- return false;
- }
+ const bool result = buf.st_mtime > mLastTime;
+ mLastTime = buf.st_mtime;
+ return result;
}
return false;
std::sort(files.begin(), files.end());
- ItemId itemId = 0;
for(FileList::iterator iter = files.begin(); iter != files.end(); ++iter)
{
JsonParser parser = JsonParser::New();
if(node->Size())
{
mFiles.push_back(*iter);
-
- mItemView.InsertItem(Item(itemId,
- MenuItem(ShortName(*iter))),
- 0.5f);
-
- itemId++;
}
else
{