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
d51e84aa
Kaydet (Commit)
d51e84aa
authored
Şub 24, 2011
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move DBG_ASSERT -> OSL_ENSURE
üst
7b6f8f33
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
UndoEnv.cxx
reportdesign/source/core/sdr/UndoEnv.cxx
+2
-2
xmlStyleImport.cxx
reportdesign/source/filter/xml/xmlStyleImport.cxx
+2
-2
xmlfilter.cxx
reportdesign/source/filter/xml/xmlfilter.cxx
+8
-8
dlgpage.cxx
reportdesign/source/ui/dlg/dlgpage.cxx
+1
-1
No files found.
reportdesign/source/core/sdr/UndoEnv.cxx
Dosyayı görüntüle @
d51e84aa
...
@@ -245,7 +245,7 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv
...
@@ -245,7 +245,7 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv
{
{
AllProperties
aNewEntry
;
AllProperties
aNewEntry
;
aSetPos
=
m_pImpl
->
m_aPropertySetCache
.
insert
(
PropertySetInfoCache
::
value_type
(
xSet
,
aNewEntry
)).
first
;
aSetPos
=
m_pImpl
->
m_aPropertySetCache
.
insert
(
PropertySetInfoCache
::
value_type
(
xSet
,
aNewEntry
)).
first
;
DBG_ASSERT
(
aSetPos
!=
m_pImpl
->
m_aPropertySetCache
.
end
(),
"OXUndoEnvironment::propertyChange : just inserted it ... why it's not there ?"
);
OSL_ENSURE
(
aSetPos
!=
m_pImpl
->
m_aPropertySetCache
.
end
(),
"OXUndoEnvironment::propertyChange : just inserted it ... why it's not there ?"
);
}
}
if
(
aSetPos
==
m_pImpl
->
m_aPropertySetCache
.
end
()
)
if
(
aSetPos
==
m_pImpl
->
m_aPropertySetCache
.
end
()
)
return
;
return
;
...
@@ -262,7 +262,7 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv
...
@@ -262,7 +262,7 @@ void SAL_CALL OXUndoEnvironment::propertyChange( const PropertyChangeEvent& _rEv
// insert the new entry
// insert the new entry
aPropertyPos
=
rPropInfos
.
insert
(
AllProperties
::
value_type
(
_rEvent
.
PropertyName
,
bTransReadOnly
)
).
first
;
aPropertyPos
=
rPropInfos
.
insert
(
AllProperties
::
value_type
(
_rEvent
.
PropertyName
,
bTransReadOnly
)
).
first
;
DBG_ASSERT
(
aPropertyPos
!=
rPropInfos
.
end
(),
"OXUndoEnvironment::propertyChange : just inserted it ... why it's not there ?"
);
OSL_ENSURE
(
aPropertyPos
!=
rPropInfos
.
end
(),
"OXUndoEnvironment::propertyChange : just inserted it ... why it's not there ?"
);
}
}
implSetModified
();
implSetModified
();
...
...
reportdesign/source/filter/xml/xmlStyleImport.cxx
Dosyayı görüntüle @
d51e84aa
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
#include <tools/debug.hxx>
#include <tools/debug.hxx>
#include "xmlfilter.hxx"
#include "xmlfilter.hxx"
#include "xmlHelper.hxx"
#include "xmlHelper.hxx"
#include <
tools/debug.hxx
>
#include <
osl/diagnose.h
>
#define XML_LINE_LEFT 0
#define XML_LINE_LEFT 0
#define XML_LINE_RIGHT 1
#define XML_LINE_RIGHT 1
...
@@ -151,7 +151,7 @@ void OControlStyleContext::SetDefaults()
...
@@ -151,7 +151,7 @@ void OControlStyleContext::SetDefaults()
void
OControlStyleContext
::
AddProperty
(
const
sal_Int16
nContextID
,
const
uno
::
Any
&
rValue
)
void
OControlStyleContext
::
AddProperty
(
const
sal_Int16
nContextID
,
const
uno
::
Any
&
rValue
)
{
{
sal_Int32
nIndex
(
static_cast
<
OReportStylesContext
*>
(
pStyles
)
->
GetIndex
(
nContextID
));
sal_Int32
nIndex
(
static_cast
<
OReportStylesContext
*>
(
pStyles
)
->
GetIndex
(
nContextID
));
DBG_ASSERT
(
nIndex
!=
-
1
,
"Property not found in Map"
);
OSL_ENSURE
(
nIndex
!=
-
1
,
"Property not found in Map"
);
XMLPropertyState
aPropState
(
nIndex
,
rValue
);
XMLPropertyState
aPropState
(
nIndex
,
rValue
);
GetProperties
().
push_back
(
aPropState
);
// has to be insertes in a sort order later
GetProperties
().
push_back
(
aPropState
);
// has to be insertes in a sort order later
}
}
...
...
reportdesign/source/filter/xml/xmlfilter.cxx
Dosyayı görüntüle @
d51e84aa
...
@@ -138,9 +138,9 @@ sal_Int32 ReadThroughComponent(
...
@@ -138,9 +138,9 @@ sal_Int32 ReadThroughComponent(
const
uno
::
Reference
<
XDocumentHandler
>&
_xFilter
,
const
uno
::
Reference
<
XDocumentHandler
>&
_xFilter
,
sal_Bool
/*bEncrypted*/
)
sal_Bool
/*bEncrypted*/
)
{
{
DBG_ASSERT
(
xInputStream
.
is
(),
"input stream missing"
);
OSL_ENSURE
(
xInputStream
.
is
(),
"input stream missing"
);
DBG_ASSERT
(
xModelComponent
.
is
(),
"document missing"
);
OSL_ENSURE
(
xModelComponent
.
is
(),
"document missing"
);
DBG_ASSERT
(
rFactory
.
is
(),
"factory missing"
);
OSL_ENSURE
(
rFactory
.
is
(),
"factory missing"
);
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"rptxml"
,
"oj"
,
"ReadThroughComponent"
);
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLog
,
"rptxml"
,
"oj"
,
"ReadThroughComponent"
);
...
@@ -153,13 +153,13 @@ sal_Int32 ReadThroughComponent(
...
@@ -153,13 +153,13 @@ sal_Int32 ReadThroughComponent(
rFactory
->
createInstance
(
rFactory
->
createInstance
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.xml.sax.Parser"
))),
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.xml.sax.Parser"
))),
UNO_QUERY
);
UNO_QUERY
);
DBG_ASSERT
(
xParser
.
is
(),
"Can't create parser"
);
OSL_ENSURE
(
xParser
.
is
(),
"Can't create parser"
);
if
(
!
xParser
.
is
()
)
if
(
!
xParser
.
is
()
)
return
1
;
return
1
;
RTL_LOGFILE_CONTEXT_TRACE
(
aLog
,
"parser created"
);
RTL_LOGFILE_CONTEXT_TRACE
(
aLog
,
"parser created"
);
// get filter
// get filter
DBG_ASSERT
(
_xFilter
.
is
(),
"Can't instantiate filter component."
);
OSL_ENSURE
(
_xFilter
.
is
(),
"Can't instantiate filter component."
);
if
(
!
_xFilter
.
is
()
)
if
(
!
_xFilter
.
is
()
)
return
1
;
return
1
;
...
@@ -233,8 +233,8 @@ sal_Int32 ReadThroughComponent(
...
@@ -233,8 +233,8 @@ sal_Int32 ReadThroughComponent(
const
::
rtl
::
OUString
&
_sFilterName
const
::
rtl
::
OUString
&
_sFilterName
,
const
uno
::
Reference
<
beans
::
XPropertySet
>&
_xProp
)
,
const
uno
::
Reference
<
beans
::
XPropertySet
>&
_xProp
)
{
{
DBG_ASSERT
(
xStorage
.
is
(),
"Need storage!"
);
OSL_ENSURE
(
xStorage
.
is
(),
"Need storage!"
);
DBG_ASSERT
(
NULL
!=
pStreamName
,
"Please, please, give me a name!"
);
OSL_ENSURE
(
NULL
!=
pStreamName
,
"Please, please, give me a name!"
);
if
(
xStorage
.
is
()
)
if
(
xStorage
.
is
()
)
{
{
...
@@ -1054,7 +1054,7 @@ void SAL_CALL ORptFilter::startDocument( void )
...
@@ -1054,7 +1054,7 @@ void SAL_CALL ORptFilter::startDocument( void )
void
ORptFilter
::
endDocument
(
void
)
void
ORptFilter
::
endDocument
(
void
)
throw
(
xml
::
sax
::
SAXException
,
uno
::
RuntimeException
)
throw
(
xml
::
sax
::
SAXException
,
uno
::
RuntimeException
)
{
{
DBG_ASSERT
(
GetModel
().
is
(),
"model missing; maybe startDocument wasn't called?"
);
OSL_ENSURE
(
GetModel
().
is
(),
"model missing; maybe startDocument wasn't called?"
);
if
(
!
GetModel
().
is
()
)
if
(
!
GetModel
().
is
()
)
return
;
return
;
...
...
reportdesign/source/ui/dlg/dlgpage.cxx
Dosyayı görüntüle @
d51e84aa
...
@@ -53,7 +53,7 @@ SfxTabDialog ( pParent, ModuleRes( _nPageId ), pAttr ),
...
@@ -53,7 +53,7 @@ SfxTabDialog ( pParent, ModuleRes( _nPageId ), pAttr ),
rOutAttrs
(
*
pAttr
)
rOutAttrs
(
*
pAttr
)
{
{
SfxAbstractDialogFactory
*
pFact
=
SfxAbstractDialogFactory
::
Create
();
SfxAbstractDialogFactory
*
pFact
=
SfxAbstractDialogFactory
::
Create
();
DBG_ASSERT
(
pFact
,
"Dialogdiet fail!"
);
OSL_ENSURE
(
pFact
,
"Dialogdiet fail!"
);
switch
(
_nPageId
)
switch
(
_nPageId
)
{
{
case
RID_PAGEDIALOG_BACKGROUND
:
case
RID_PAGEDIALOG_BACKGROUND
:
...
...
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