Ticket #5021: RemoveUselessCode.patch

File RemoveUselessCode.patch, 1.2 KB (added by eyebex, 10 years ago)
  • GroupsDlgSharedFolders.cpp

     
    616616    }
    617617
    618618    CEnterSomething dlg(IDS_SHAREDFOLDERS_ENTERALIASES, IDD_ENTERSOMETHING_LARGE);
    619     CString aliases;
    620     for (std::list<CString>::const_iterator iter = pGroup->permissions[index].aliases.begin(); iter != pGroup->permissions[index].aliases.end(); iter++)
    621         aliases += *iter + "|";
    622619    dlg.m_String = m_cDirs.GetItemText(nItem, 1);
    623620    dlg.allowEmpty = true;
    624621    if (dlg.DoModal() == IDOK)
  • UsersDlgSharedFolders.cpp

     
    616616    }
    617617
    618618    CEnterSomething dlg(IDS_SHAREDFOLDERS_ENTERALIASES, IDD_ENTERSOMETHING_LARGE);
    619     CString aliases;
    620     for (std::list<CString>::const_iterator iter = pUser->permissions[index].aliases.begin(); iter != pUser->permissions[index].aliases.end(); iter++)
    621         aliases += *iter + "|";
    622619    dlg.m_String = m_cDirs.GetItemText(nItem, 1);
    623620    dlg.allowEmpty = true;
    624621    if (dlg.DoModal() == IDOK)