summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-05-11 08:05:49 +0000
committerKurt Zenker <kz@openoffice.org>2007-05-11 08:05:49 +0000
commit7897a5955366239818c6e35d503ead8b4b5ce1af (patch)
tree828893ffb89101a96d904c68f47fde7a5619fd1b /basic
parentc5577c2858da40577ad7116d64be8c55cadf5374 (diff)
INTEGRATION: CWS gh13 (1.25.16); FILE MERGED
2007/01/31 10:06:48 gh 1.25.16.2: RESYNC: (1.25-1.26); FILE MERGED 2006/11/17 12:08:00 gh 1.25.16.1: rework removing warnings from code to be nicer
Diffstat (limited to 'basic')
-rw-r--r--basic/source/app/msgedit.cxx32
1 files changed, 6 insertions, 26 deletions
diff --git a/basic/source/app/msgedit.cxx b/basic/source/app/msgedit.cxx
index 69797536cf41..13938a24ccb4 100644
--- a/basic/source/app/msgedit.cxx
+++ b/basic/source/app/msgedit.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: msgedit.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: rt $ $Date: 2007-04-26 08:32:08 $
+ * last change: $Author: kz $ $Date: 2007-05-11 09:05:49 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -328,13 +328,8 @@ void MsgEdit::AddWarning( String aMsg, TTDebugData aDebugData )
aEditTree.ShowEntry( pThisEntry );
}
- while ( !aEditTree.IsEntryVisible( pThisEntry ) )
- {
- pThisEntry = aEditTree.GetParent( pThisEntry );
- if ( pThisEntry == NULL )
- break;
+ while ( !aEditTree.IsEntryVisible( pThisEntry ) && ( pThisEntry = aEditTree.GetParent( pThisEntry ) ) != NULL )
aEditTree.InvalidateEntry( pThisEntry );
- }
}
void MsgEdit::AddAssertion( String aMsg, TTDebugData aDebugData )
@@ -363,13 +358,8 @@ void MsgEdit::AddAssertion( String aMsg, TTDebugData aDebugData )
pCurrentAssertion = pThisEntry;
- while ( !aEditTree.IsEntryVisible( pThisEntry ) )
- {
- pThisEntry = aEditTree.GetParent( pThisEntry );
- if ( pThisEntry == NULL )
- break;
+ while ( !aEditTree.IsEntryVisible( pThisEntry ) && ( pThisEntry = aEditTree.GetParent( pThisEntry ) ) != NULL )
aEditTree.InvalidateEntry( pThisEntry );
- }
}
void MsgEdit::AddAssertionStack( String aMsg, TTDebugData aDebugData )
@@ -392,13 +382,8 @@ void MsgEdit::AddAssertionStack( String aMsg, TTDebugData aDebugData )
aEditTree.ShowEntry( pThisEntry );
}
- while ( !aEditTree.IsEntryVisible( pThisEntry ) )
- {
- pThisEntry = aEditTree.GetParent( pThisEntry );
- if ( pThisEntry == NULL )
- break;
+ while ( !aEditTree.IsEntryVisible( pThisEntry ) && ( pThisEntry = aEditTree.GetParent( pThisEntry ) ) != NULL )
aEditTree.InvalidateEntry( pThisEntry );
- }
}
void MsgEdit::AddQAError( String aMsg, TTDebugData aDebugData )
@@ -419,13 +404,8 @@ void MsgEdit::AddQAError( String aMsg, TTDebugData aDebugData )
aEditTree.ShowEntry( pThisEntry );
}
- while ( !aEditTree.IsEntryVisible( pThisEntry ) )
- {
- pThisEntry = aEditTree.GetParent( pThisEntry );
- if ( pThisEntry == NULL )
- break;
+ while ( !aEditTree.IsEntryVisible( pThisEntry ) && ( pThisEntry = aEditTree.GetParent( pThisEntry ) ) != NULL )
aEditTree.InvalidateEntry( pThisEntry );
- }
}
/*