ubuntu-touch-coreapps-reviewers team mailing list archive
-
ubuntu-touch-coreapps-reviewers team
-
Mailing list archive
-
Message #10140
Re: [Merge] lp:~renatofilho/ubuntu-filemanager-app/fix-network-crash into lp:ubuntu-filemanager-app
Renato,
by temporary objects I mean a temporary DirItemInfo created in Location?? classes, example:
void Location::refreshInfo()
{
if (m_info)
{
DirItemInfo *item = newItemInfo(m_info->absoluteFilePath());
delete m_info;
m_info = item;
}
}
Would be changed by:
void Location::refreshInfo()
{
if (m_info)
{
DirItemInfo *item = newItemInfo(m_info->absoluteFilePath());
*m_info = *item; // current m_info item receives current information
delete item;
}
}
I am not sure the operator "=" works properly for all DirItemInfo descendant classes.
--
https://code.launchpad.net/~renatofilho/ubuntu-filemanager-app/fix-network-crash/+merge/314870
Your team Ubuntu File Manager Developers is subscribed to branch lp:ubuntu-filemanager-app.
References