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
a4967e4a
Kaydet (Commit)
a4967e4a
authored
Tem 23, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Assertion clean-up
Change-Id: I234c615d9d3386da2b244709add5c029b76d346c
üst
682cb83e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
lbenv.cxx
cppu/source/uno/lbenv.cxx
+6
-9
iafactory.cxx
stoc/source/invocation_adapterfactory/iafactory.cxx
+4
-5
No files found.
cppu/source/uno/lbenv.cxx
Dosyayı görüntüle @
a4967e4a
...
@@ -187,17 +187,14 @@ inline void ObjectEntry::append(
...
@@ -187,17 +187,14 @@ inline void ObjectEntry::append(
typelib_typedescription_acquire
(
(
typelib_TypeDescription
*
)
pTypeDescr
);
typelib_typedescription_acquire
(
(
typelib_TypeDescription
*
)
pTypeDescr
);
aNewEntry
.
pTypeDescr
=
pTypeDescr
;
aNewEntry
.
pTypeDescr
=
pTypeDescr
;
::
std
::
pair
<
Ptr2ObjectMap
::
iterator
,
bool
>
i
nsertion
(
::
std
::
pair
<
Ptr2ObjectMap
::
iterator
,
bool
>
i
(
pEnv
->
aPtr2ObjectMap
.
insert
(
Ptr2ObjectMap
::
value_type
(
pEnv
->
aPtr2ObjectMap
.
insert
(
Ptr2ObjectMap
::
value_type
(
pInterface
,
this
)
)
);
pInterface
,
this
)
)
);
// No idea if the code above has side-effects and can't be just
SAL_WARN_IF
(
// bypassed in the no-OSL_ASSERT case, so avoid "unused variable" like this instead.
!
i
.
second
&&
(
find
(
pInterface
,
0
)
==
-
1
||
i
.
first
->
second
!=
this
),
(
void
)
insertion
;
"cppu"
,
"map already contains "
<<
i
.
first
->
second
<<
" != "
<<
this
<<
" for "
OSL_ASSERT
(
insertion
.
second
||
<<
pInterface
);
(
find
(
pInterface
,
0
)
>=
0
&&
// points to the same object entry:
insertion
.
first
->
second
==
this
)
);
aInterfaces
.
push_back
(
aNewEntry
);
aInterfaces
.
push_back
(
aNewEntry
);
}
}
...
...
stoc/source/invocation_adapterfactory/iafactory.cxx
Dosyayı görüntüle @
a4967e4a
...
@@ -861,11 +861,10 @@ Reference< XInterface > FactoryImpl::createAdapter(
...
@@ -861,11 +861,10 @@ Reference< XInterface > FactoryImpl::createAdapter(
&
adapter_set
,
m_receiver2adapters
,
xKey
.
get
(),
rTypes
);
&
adapter_set
,
m_receiver2adapters
,
xKey
.
get
(),
rTypes
);
if
(
0
==
that
)
// again no entry
if
(
0
==
that
)
// again no entry
{
{
pair
<
t_ptr_set
::
iterator
,
bool
>
insertion
(
pair
<
t_ptr_set
::
iterator
,
bool
>
i
(
adapter_set
->
insert
(
pNew
));
adapter_set
->
insert
(
pNew
)
);
SAL_WARN_IF
(
// Avoid unused variable warning
!
i
.
second
,
"stoc"
,
(
void
)
insertion
;
"set already contains "
<<
*
(
i
.
first
)
<<
" != "
<<
pNew
);
OSL_ASSERT
(
insertion
.
second
);
that
=
pNew
;
that
=
pNew
;
}
}
else
else
...
...
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