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
7bbaa391
Kaydet (Commit)
7bbaa391
authored
Tem 03, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Catch invalid null pointer operations early
Change-Id: I324d5a6e84e0d2121d8e4612e074b44ed5127b11
üst
f36e64d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
Reference.h
include/com/sun/star/uno/Reference.h
+8
-3
ref.hxx
include/rtl/ref.hxx
+6
-3
No files found.
include/com/sun/star/uno/Reference.h
Dosyayı görüntüle @
7bbaa391
...
...
@@ -19,8 +19,11 @@
#ifndef INCLUDED_COM_SUN_STAR_UNO_REFERENCE_H
#define INCLUDED_COM_SUN_STAR_UNO_REFERENCE_H
#include <rtl/alloc.h>
#include <sal/config.h>
#include <cassert>
#include <rtl/alloc.h>
namespace
com
{
...
...
@@ -395,8 +398,10 @@ public:
@return UNacquired interface pointer
*/
inline
interface_type
*
SAL_CALL
operator
->
()
const
{
return
castFromXInterface
(
_pInterface
);
}
inline
interface_type
*
SAL_CALL
operator
->
()
const
{
assert
(
_pInterface
!=
0
);
return
castFromXInterface
(
_pInterface
);
}
/** Gets interface pointer. This call does not acquire the interface.
...
...
include/rtl/ref.hxx
Dosyayı görüntüle @
7bbaa391
...
...
@@ -20,8 +20,11 @@
#ifndef INCLUDED_RTL_REF_HXX
#define INCLUDED_RTL_REF_HXX
#include <sal/config.h>
#include <cassert>
#include <sal/types.h>
#include <osl/diagnose.h>
#include <osl/interlck.h>
namespace
rtl
...
...
@@ -160,7 +163,7 @@ public:
*/
inline
reference_type
*
SAL_CALL
operator
->
()
const
{
OSL_PRECOND
(
m_pBody
,
"Reference::operator->() : null body"
);
assert
(
m_pBody
!=
0
);
return
m_pBody
;
}
...
...
@@ -169,7 +172,7 @@ public:
*/
inline
reference_type
&
SAL_CALL
operator
*
()
const
{
OSL_PRECOND
(
m_pBody
,
"Reference::operator*() : null body"
);
assert
(
m_pBody
!=
0
);
return
*
m_pBody
;
}
...
...
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