Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
28b86ca7
Kaydet (Commit)
28b86ca7
authored
Ara 14, 2011
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replaced remaining OSL_ASSERT in configmgr.
üst
ce1f52d6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
12 deletions
+16
-12
broadcaster.cxx
configmgr/source/broadcaster.cxx
+7
-6
modifications.cxx
configmgr/source/modifications.cxx
+3
-1
update.cxx
configmgr/source/update.cxx
+2
-1
xcdparser.cxx
configmgr/source/xcdparser.cxx
+4
-4
No files found.
configmgr/source/broadcaster.cxx
Dosyayı görüntüle @
28b86ca7
...
@@ -28,6 +28,8 @@
...
@@ -28,6 +28,8 @@
#include "sal/config.h"
#include "sal/config.h"
#include <cassert>
#include "com/sun/star/beans/XPropertiesChangeListener.hpp"
#include "com/sun/star/beans/XPropertiesChangeListener.hpp"
#include "com/sun/star/beans/XPropertyChangeListener.hpp"
#include "com/sun/star/beans/XPropertyChangeListener.hpp"
#include "com/sun/star/container/XContainerListener.hpp"
#include "com/sun/star/container/XContainerListener.hpp"
...
@@ -40,7 +42,6 @@
...
@@ -40,7 +42,6 @@
#include "com/sun/star/uno/XInterface.hpp"
#include "com/sun/star/uno/XInterface.hpp"
#include "com/sun/star/util/XChangesListener.hpp"
#include "com/sun/star/util/XChangesListener.hpp"
#include "cppuhelper/exc_hlp.hxx"
#include "cppuhelper/exc_hlp.hxx"
#include "osl/diagnose.hxx"
#include "rtl/string.h"
#include "rtl/string.h"
#include "rtl/ustrbuf.hxx"
#include "rtl/ustrbuf.hxx"
#include "rtl/ustring.h"
#include "rtl/ustring.h"
...
@@ -217,7 +218,7 @@ Broadcaster::DisposeNotification::DisposeNotification(
...
@@ -217,7 +218,7 @@ Broadcaster::DisposeNotification::DisposeNotification(
css
::
lang
::
EventObject
const
&
theEvent
)
:
css
::
lang
::
EventObject
const
&
theEvent
)
:
listener
(
theListener
),
event
(
theEvent
)
listener
(
theListener
),
event
(
theEvent
)
{
{
OSL_ASSERT
(
theListener
.
is
());
assert
(
theListener
.
is
());
}
}
Broadcaster
::
ContainerNotification
::
ContainerNotification
(
Broadcaster
::
ContainerNotification
::
ContainerNotification
(
...
@@ -226,7 +227,7 @@ Broadcaster::ContainerNotification::ContainerNotification(
...
@@ -226,7 +227,7 @@ Broadcaster::ContainerNotification::ContainerNotification(
css
::
container
::
ContainerEvent
const
&
theEvent
)
:
css
::
container
::
ContainerEvent
const
&
theEvent
)
:
listener
(
theListener
),
event
(
theEvent
)
listener
(
theListener
),
event
(
theEvent
)
{
{
OSL_ASSERT
(
theListener
.
is
());
assert
(
theListener
.
is
());
}
}
Broadcaster
::
PropertyChangeNotification
::
PropertyChangeNotification
(
Broadcaster
::
PropertyChangeNotification
::
PropertyChangeNotification
(
...
@@ -235,7 +236,7 @@ Broadcaster::PropertyChangeNotification::PropertyChangeNotification(
...
@@ -235,7 +236,7 @@ Broadcaster::PropertyChangeNotification::PropertyChangeNotification(
css
::
beans
::
PropertyChangeEvent
const
&
theEvent
)
:
css
::
beans
::
PropertyChangeEvent
const
&
theEvent
)
:
listener
(
theListener
),
event
(
theEvent
)
listener
(
theListener
),
event
(
theEvent
)
{
{
OSL_ASSERT
(
theListener
.
is
());
assert
(
theListener
.
is
());
}
}
Broadcaster
::
PropertiesChangeNotification
::
PropertiesChangeNotification
(
Broadcaster
::
PropertiesChangeNotification
::
PropertiesChangeNotification
(
...
@@ -244,7 +245,7 @@ Broadcaster::PropertiesChangeNotification::PropertiesChangeNotification(
...
@@ -244,7 +245,7 @@ Broadcaster::PropertiesChangeNotification::PropertiesChangeNotification(
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyChangeEvent
>
const
&
theEvent
)
:
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyChangeEvent
>
const
&
theEvent
)
:
listener
(
theListener
),
event
(
theEvent
)
listener
(
theListener
),
event
(
theEvent
)
{
{
OSL_ASSERT
(
theListener
.
is
());
assert
(
theListener
.
is
());
}
}
Broadcaster
::
ChangesNotification
::
ChangesNotification
(
Broadcaster
::
ChangesNotification
::
ChangesNotification
(
...
@@ -252,7 +253,7 @@ Broadcaster::ChangesNotification::ChangesNotification(
...
@@ -252,7 +253,7 @@ Broadcaster::ChangesNotification::ChangesNotification(
css
::
util
::
ChangesEvent
const
&
theEvent
)
:
css
::
util
::
ChangesEvent
const
&
theEvent
)
:
listener
(
theListener
),
event
(
theEvent
)
listener
(
theListener
),
event
(
theEvent
)
{
{
OSL_ASSERT
(
theListener
.
is
());
assert
(
theListener
.
is
());
}
}
}
}
...
...
configmgr/source/modifications.cxx
Dosyayı görüntüle @
28b86ca7
...
@@ -28,6 +28,8 @@
...
@@ -28,6 +28,8 @@
#include "sal/config.h"
#include "sal/config.h"
#include <cassert>
#include "rtl/ustring.hxx"
#include "rtl/ustring.hxx"
#include "modifications.hxx"
#include "modifications.hxx"
...
@@ -60,7 +62,7 @@ void Modifications::add(Path const & path) {
...
@@ -60,7 +62,7 @@ void Modifications::add(Path const & path) {
}
}
void
Modifications
::
remove
(
Path
const
&
path
)
{
void
Modifications
::
remove
(
Path
const
&
path
)
{
OSL_ASSERT
(
!
path
.
empty
());
assert
(
!
path
.
empty
());
Node
*
p
=
&
root_
;
Node
*
p
=
&
root_
;
for
(
Path
::
const_iterator
i
(
path
.
begin
());;)
{
for
(
Path
::
const_iterator
i
(
path
.
begin
());;)
{
Node
::
Children
::
iterator
j
(
p
->
children
.
find
(
*
i
));
Node
::
Children
::
iterator
j
(
p
->
children
.
find
(
*
i
));
...
...
configmgr/source/update.cxx
Dosyayı görüntüle @
28b86ca7
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include "sal/config.h"
#include "sal/config.h"
#include <cassert>
#include <set>
#include <set>
#include "boost/noncopyable.hpp"
#include "boost/noncopyable.hpp"
...
@@ -75,7 +76,7 @@ public:
...
@@ -75,7 +76,7 @@ public:
Service
(
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
const
context
)
:
Service
(
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
const
context
)
:
context_
(
context
)
context_
(
context
)
{
{
OSL_ASSERT
(
context
.
is
());
assert
(
context
.
is
());
lock_
=
lock
();
lock_
=
lock
();
}
}
...
...
configmgr/source/xcdparser.cxx
Dosyayı görüntüle @
28b86ca7
...
@@ -28,12 +28,12 @@
...
@@ -28,12 +28,12 @@
#include "sal/config.h"
#include "sal/config.h"
#include <cassert>
#include <climits>
#include <climits>
#include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/XInterface.hpp"
#include "com/sun/star/uno/XInterface.hpp"
#include "osl/diagnose.hxx"
#include "rtl/string.h"
#include "rtl/string.h"
#include "rtl/ustring.h"
#include "rtl/ustring.h"
#include "rtl/ustring.hxx"
#include "rtl/ustring.hxx"
...
@@ -69,7 +69,7 @@ bool XcdParser::startElement(
...
@@ -69,7 +69,7 @@ bool XcdParser::startElement(
xmlreader
::
XmlReader
&
reader
,
int
nsId
,
xmlreader
::
Span
const
&
name
)
xmlreader
::
XmlReader
&
reader
,
int
nsId
,
xmlreader
::
Span
const
&
name
)
{
{
if
(
nestedParser_
.
is
())
{
if
(
nestedParser_
.
is
())
{
OSL_ASSERT
(
nesting_
!=
LONG_MAX
);
assert
(
nesting_
!=
LONG_MAX
);
++
nesting_
;
++
nesting_
;
return
nestedParser_
->
startElement
(
reader
,
nsId
,
name
);
return
nestedParser_
->
startElement
(
reader
,
nsId
,
name
);
}
}
...
@@ -145,7 +145,7 @@ bool XcdParser::startElement(
...
@@ -145,7 +145,7 @@ bool XcdParser::startElement(
}
}
break
;
break
;
default
:
// STATE_DEPENDENCY
default
:
// STATE_DEPENDENCY
OSL_ASSERT
(
false
);
// this cannot happen
assert
(
false
);
// this cannot happen
break
;
break
;
}
}
throw
css
::
uno
::
RuntimeException
(
throw
css
::
uno
::
RuntimeException
(
...
@@ -170,7 +170,7 @@ void XcdParser::endElement(xmlreader::XmlReader const & reader) {
...
@@ -170,7 +170,7 @@ void XcdParser::endElement(xmlreader::XmlReader const & reader) {
case
STATE_COMPONENTS
:
case
STATE_COMPONENTS
:
break
;
break
;
default
:
default
:
OSL_ASSERT
(
false
);
// this cannot happen
assert
(
false
);
// this cannot happen
break
;
break
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment