summaryrefslogtreecommitdiff
path: root/UnoControls/source/controls/progressmonitor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'UnoControls/source/controls/progressmonitor.cxx')
-rw-r--r--UnoControls/source/controls/progressmonitor.cxx29
1 files changed, 13 insertions, 16 deletions
diff --git a/UnoControls/source/controls/progressmonitor.cxx b/UnoControls/source/controls/progressmonitor.cxx
index a2f19c350da3..e752b006031e 100644
--- a/UnoControls/source/controls/progressmonitor.cxx
+++ b/UnoControls/source/controls/progressmonitor.cxx
@@ -217,24 +217,21 @@ void SAL_CALL ProgressMonitor::addText(
// Else ... take memory for new item ...
IMPL_TextlistItem* pTextItem = new IMPL_TextlistItem;
- if ( pTextItem != NULL )
- {
- // Set values ...
- pTextItem->sTopic = rTopic;
- pTextItem->sText = rText;
+ // Set values ...
+ pTextItem->sTopic = rTopic;
+ pTextItem->sText = rText;
- // Ready for multithreading
- MutexGuard aGuard ( m_aMutex );
+ // Ready for multithreading
+ MutexGuard aGuard ( m_aMutex );
- // ... and insert it in right list.
- if ( bbeforeProgress )
- {
- maTextlist_Top.push_back( pTextItem );
- }
- else
- {
- maTextlist_Bottom.push_back( pTextItem );
- }
+ // ... and insert it in right list.
+ if ( bbeforeProgress )
+ {
+ maTextlist_Top.push_back( pTextItem );
+ }
+ else
+ {
+ maTextlist_Bottom.push_back( pTextItem );
}
// ... update window