mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 07:05:26 -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
|
@ -701,7 +701,7 @@ void MainWindow::updateTrayCombine()
|
|||
QList<QAction*> actions = notifyMenu->actions();
|
||||
int count = 0;
|
||||
QList<QAction*>::iterator actionIt;
|
||||
for (actionIt = actions.begin(); actionIt != actions.end(); actionIt++) {
|
||||
for (actionIt = actions.begin(); actionIt != actions.end(); ++actionIt) {
|
||||
if ((*actionIt)->isVisible()) {
|
||||
visible = true;
|
||||
|
||||
|
@ -1264,7 +1264,7 @@ void MainWindow::loadOwnStatus()
|
|||
StatusInfo statusInfo;
|
||||
if (rsStatus->getOwnStatus(statusInfo)) {
|
||||
/* send status to all added objects */
|
||||
for (std::set <QObject*>::iterator it = m_apStatusObjects.begin(); it != m_apStatusObjects.end(); it++) {
|
||||
for (std::set <QObject*>::iterator it = m_apStatusObjects.begin(); it != m_apStatusObjects.end(); ++it) {
|
||||
setStatusObject(*it, statusInfo.status);
|
||||
}
|
||||
}
|
||||
|
@ -1374,7 +1374,7 @@ void MainWindow::setStatus(QObject *pObject, int nStatus)
|
|||
rsStatus->sendStatus(RsPeerId(), nStatus);
|
||||
|
||||
/* set status in all status objects, but the calling one */
|
||||
for (std::set <QObject*>::iterator it = m_apStatusObjects.begin(); it != m_apStatusObjects.end(); it++) {
|
||||
for (std::set <QObject*>::iterator it = m_apStatusObjects.begin(); it != m_apStatusObjects.end(); ++it) {
|
||||
if (*it != pObject) {
|
||||
setStatusObject(*it, nStatus);
|
||||
}
|
||||
|
@ -1408,7 +1408,7 @@ void MainWindow::settingsChanged()
|
|||
ui->toolBarPage->setVisible(Settings->getPageButtonLoc());
|
||||
ui->toolBarAction->setVisible(Settings->getActionButtonLoc());
|
||||
ui->listWidget->setVisible(!Settings->getPageButtonLoc() || !Settings->getActionButtonLoc());
|
||||
for(int i = 0; i < ui->listWidget->count(); i++) {
|
||||
for(int i = 0; i < ui->listWidget->count(); ++i) {
|
||||
if (ui->listWidget->item(i)->data(Qt::UserRole).toString() == "") {
|
||||
ui->listWidget->item(i)->setHidden(Settings->getPageButtonLoc());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue