[Uml-devel] KDE/kdesdk/umbrello/umbrello/dialogs
Andi Fischer
andi.fischer at hispeed.ch
Thu Oct 2 14:11:01 UTC 2008
SVN commit 866965 by fischer:
Krazy: fixing postfix usage of ++ and --.
M +1 -1 activitypage.cpp
M +1 -1 codeeditor.cpp
M +3 -3 diagramprintpage.cpp
M +1 -1 settingsdlg.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/activitypage.cpp #866964:866965
@@ -117,7 +117,7 @@
{
QStringList list;
int count = m_pActivityLW->count();
- for( int i = 0; i < count; i++ ) {
+ for (int i = 0; i < count; ++i) {
list.append( m_pActivityLW->item(i)->text() );
}
m_pStateWidget->setActivities( list );
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/codeeditor.cpp #866964:866965
@@ -892,7 +892,7 @@
int lastpara = item->start+pstart+item->size;
int endEdit = block->lastEditableLine();
int lastLineToAddNewLine = lastpara + endEdit;
- for(int para=(item->start+pstart);para<=lastpara;para++)
+ for (int para=(item->start+pstart); para<=lastpara; ++para)
{
QString line = block->unformatText(text(para), baseIndent);
content += line;
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/diagramprintpage.cpp #866964:866965
@@ -90,7 +90,7 @@
QStringList types;
// diagramNo 1 is Uml::dt_Class
// digaramNo 9 is Uml::dt_EntityRelationship
- for (int diagramNo = 1; diagramNo < Uml::N_DIAGRAMTYPES; diagramNo++) {
+ for (int diagramNo = 1; diagramNo < Uml::N_DIAGRAMTYPES; ++diagramNo) {
types << Model_Utils::diagramTypeToString( ( Uml::Diagram_Type )diagramNo ) ;
}
@@ -111,7 +111,7 @@
{
int count = 0;
- for (int i = 0; i < m_pSelectLW->count(); i++) {
+ for (int i = 0; i < m_pSelectLW->count(); ++i) {
if (isSelected(i)) {
if (count == sel) {
UMLView *view = (UMLView *)m_pDoc->findView(m_nIdList[i]);
@@ -128,7 +128,7 @@
{
int listCount = m_pSelectLW->count();
bool sel = false;
- for(int i = 0; i < listCount; i++) {
+ for (int i = 0; i < listCount; ++i) {
if (isSelected(i)) {
sel = true;
i = listCount;
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/settingsdlg.cpp #866964:866965
@@ -200,7 +200,7 @@
// start at 1 because we don't allow No Diagram any more
// diagramNo 1 is Uml::dt_Class
// digaramNo 9 is Uml::dt_EntityRelationship
- for (int diagramNo=1; diagramNo < 10; diagramNo++) {
+ for (int diagramNo=1; diagramNo < 10; ++diagramNo) {
insertDiagram( Model_Utils::diagramTypeToString( ( Uml::Diagram_Type )diagramNo ), /*index*/ diagramNo - 1 );
}
More information about the umbrello-devel
mailing list