mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-15 12:32:37 -04:00
optim: changed postfixed ++ into prefix++ for non trivial operators, replaced test on std::list::size() by std::list::empty() (Patch from Phenom, modified)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7627 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
491a655889
commit
b593a918a0
99 changed files with 571 additions and 571 deletions
|
@ -497,7 +497,7 @@ QModelIndexList SharedFilesDialog::getSelected()
|
|||
{
|
||||
QModelIndexList list = ui.dirTreeView->selectionModel()->selectedIndexes() ;
|
||||
QModelIndexList proxyList ;
|
||||
for (QModelIndexList::iterator index = list.begin(); index != list.end(); index++ ) {
|
||||
for (QModelIndexList::iterator index = list.begin(); index != list.end(); ++index ) {
|
||||
proxyList.append(proxyModel->mapToSource(*index)) ;
|
||||
}//for (QModelIndexList::iterator index
|
||||
|
||||
|
@ -521,7 +521,7 @@ void LocalSharedFilesDialog::editSharePermissions()
|
|||
rsFiles->getSharedDirectories(dirs);
|
||||
|
||||
std::list<SharedDirInfo>::const_iterator it;
|
||||
for (it = dirs.begin(); it != dirs.end(); it++) {
|
||||
for (it = dirs.begin(); it != dirs.end(); ++it) {
|
||||
if (currentFile == currentFile) {
|
||||
/* file name found, show dialog */
|
||||
ShareDialog sharedlg (it->filename, this);
|
||||
|
@ -756,7 +756,7 @@ void LocalSharedFilesDialog::playselectedfiles()
|
|||
|
||||
std::list<std::string>::iterator it;
|
||||
QStringList fullpaths;
|
||||
for(it = paths.begin(); it != paths.end(); it++)
|
||||
for(it = paths.begin(); it != paths.end(); ++it)
|
||||
{
|
||||
std::string fullpath;
|
||||
rsFiles->ConvertSharedFilePath(*it, fullpath);
|
||||
|
@ -1023,7 +1023,7 @@ void SharedFilesDialog::FilterItems()
|
|||
QCoreApplication::processEvents() ;
|
||||
|
||||
int rowCount = ui.dirTreeView->model()->rowCount();
|
||||
for (int row = 0; row < rowCount; row++)
|
||||
for (int row = 0; row < rowCount; ++row)
|
||||
if(proxyModel == tree_proxyModel)
|
||||
tree_FilterItem(ui.dirTreeView->model()->index(row, COLUMN_NAME), text, 0);
|
||||
else
|
||||
|
@ -1063,9 +1063,9 @@ bool SharedFilesDialog::tree_FilterItem(const QModelIndex &index, const QString
|
|||
|
||||
int visibleChildCount = 0;
|
||||
int rowCount = ui.dirTreeView->model()->rowCount(index);
|
||||
for (int row = 0; row < rowCount; row++) {
|
||||
for (int row = 0; row < rowCount; ++row) {
|
||||
if (tree_FilterItem(ui.dirTreeView->model()->index(row, index.column(), index), text, level + 1)) {
|
||||
visibleChildCount++;
|
||||
++visibleChildCount;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue