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
0f297e20
Kaydet (Commit)
0f297e20
authored
Ock 20, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
OSL_ENSURE->assert where unconditionally deref follows
Change-Id: I0cb2400e7ebb28cad2c98f9e69d68d312efb03ca
üst
37e4920a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
xmltexti.cxx
sw/source/filter/xml/xmltexti.cxx
+7
-7
No files found.
sw/source/filter/xml/xmltexti.cxx
Dosyayı görüntüle @
0f297e20
...
...
@@ -185,7 +185,7 @@ bool SwXMLTextImportHelper::IsInHeaderFooter() const
{
uno
::
Reference
<
XUnoTunnel
>
xCrsrTunnel
(
((
SwXMLTextImportHelper
*
)
this
)
->
GetCursor
(),
UNO_QUERY
);
OSL_ENSURE
(
xCrsrTunnel
.
is
(),
"missing XUnoTunnel for Cursor"
);
assert
(
xCrsrTunnel
.
is
()
&&
"missing XUnoTunnel for Cursor"
);
OTextCursorHelper
*
pTxtCrsr
=
reinterpret_cast
<
OTextCursorHelper
*
>
(
sal
::
static_int_cast
<
sal_IntPtr
>
(
xCrsrTunnel
->
getSomething
(
OTextCursorHelper
::
getUnoTunnelId
()
)));
OSL_ENSURE
(
pTxtCrsr
,
"SwXTextCursor missing"
);
...
...
@@ -229,7 +229,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertOLEObject(
return
xPropSet
;
uno
::
Reference
<
XUnoTunnel
>
xCrsrTunnel
(
GetCursor
(),
UNO_QUERY
);
OSL_ENSURE
(
xCrsrTunnel
.
is
(),
"missing XUnoTunnel for Cursor"
);
assert
(
xCrsrTunnel
.
is
()
&&
"missing XUnoTunnel for Cursor"
);
OTextCursorHelper
*
pTxtCrsr
=
reinterpret_cast
<
OTextCursorHelper
*
>
(
sal
::
static_int_cast
<
sal_IntPtr
>
(
xCrsrTunnel
->
getSomething
(
OTextCursorHelper
::
getUnoTunnelId
()
)));
OSL_ENSURE
(
pTxtCrsr
,
"SwXTextCursor missing"
);
...
...
@@ -539,7 +539,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertOOoLink(
uno
::
Reference
<
XPropertySet
>
xPropSet
;
uno
::
Reference
<
XUnoTunnel
>
xCrsrTunnel
(
GetCursor
(),
UNO_QUERY
);
OSL_ENSURE
(
xCrsrTunnel
.
is
(),
"missing XUnoTunnel for Cursor"
);
assert
(
xCrsrTunnel
.
is
()
&&
"missing XUnoTunnel for Cursor"
);
OTextCursorHelper
*
pTxtCrsr
=
reinterpret_cast
<
OTextCursorHelper
*
>
(
sal
::
static_int_cast
<
sal_IntPtr
>
(
xCrsrTunnel
->
getSomething
(
OTextCursorHelper
::
getUnoTunnelId
()
)));
OSL_ENSURE
(
pTxtCrsr
,
"SwXTextCursor missing"
);
...
...
@@ -627,7 +627,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertApplet(
uno
::
Reference
<
XPropertySet
>
xPropSet
;
uno
::
Reference
<
XUnoTunnel
>
xCrsrTunnel
(
GetCursor
(),
UNO_QUERY
);
OSL_ENSURE
(
xCrsrTunnel
.
is
(),
"missing XUnoTunnel for Cursor"
);
assert
(
xCrsrTunnel
.
is
()
&&
"missing XUnoTunnel for Cursor"
);
OTextCursorHelper
*
pTxtCrsr
=
reinterpret_cast
<
OTextCursorHelper
*
>
(
sal
::
static_int_cast
<
sal_IntPtr
>
(
xCrsrTunnel
->
getSomething
(
OTextCursorHelper
::
getUnoTunnelId
()
)));
OSL_ENSURE
(
pTxtCrsr
,
"SwXTextCursor missing"
);
...
...
@@ -674,7 +674,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertPlugin(
{
uno
::
Reference
<
XPropertySet
>
xPropSet
;
uno
::
Reference
<
XUnoTunnel
>
xCrsrTunnel
(
GetCursor
(),
UNO_QUERY
);
OSL_ENSURE
(
xCrsrTunnel
.
is
(),
"missing XUnoTunnel for Cursor"
);
assert
(
xCrsrTunnel
.
is
()
&&
"missing XUnoTunnel for Cursor"
);
OTextCursorHelper
*
pTxtCrsr
=
reinterpret_cast
<
OTextCursorHelper
*
>
(
sal
::
static_int_cast
<
sal_IntPtr
>
(
xCrsrTunnel
->
getSomething
(
OTextCursorHelper
::
getUnoTunnelId
()
)));
OSL_ENSURE
(
pTxtCrsr
,
"SwXTextCursor missing"
);
...
...
@@ -757,7 +757,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertFloatingFra
uno
::
Reference
<
XPropertySet
>
xPropSet
;
uno
::
Reference
<
XUnoTunnel
>
xCrsrTunnel
(
GetCursor
(),
UNO_QUERY
);
OSL_ENSURE
(
xCrsrTunnel
.
is
(),
"missing XUnoTunnel for Cursor"
);
assert
(
xCrsrTunnel
.
is
()
&&
"missing XUnoTunnel for Cursor"
);
OTextCursorHelper
*
pTxtCrsr
=
reinterpret_cast
<
OTextCursorHelper
*
>
(
sal
::
static_int_cast
<
sal_IntPtr
>
(
xCrsrTunnel
->
getSomething
(
OTextCursorHelper
::
getUnoTunnelId
()
)));
OSL_ENSURE
(
pTxtCrsr
,
"SwXTextCursor missing"
);
...
...
@@ -909,7 +909,7 @@ void SwXMLTextImportHelper::endAppletOrPlugin(
SolarMutexGuard
aGuard
;
uno
::
Reference
<
XUnoTunnel
>
xCrsrTunnel
(
rPropSet
,
UNO_QUERY
);
OSL_ENSURE
(
xCrsrTunnel
.
is
(),
"missing XUnoTunnel for embedded"
);
assert
(
xCrsrTunnel
.
is
()
&&
"missing XUnoTunnel for embedded"
);
SwXFrame
*
pFrame
=
reinterpret_cast
<
SwXFrame
*
>
(
sal
::
static_int_cast
<
sal_IntPtr
>
(
xCrsrTunnel
->
getSomething
(
SwXFrame
::
getUnoTunnelId
()
)));
OSL_ENSURE
(
pFrame
,
"SwXFrame missing"
);
...
...
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