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
06202a90
Kaydet (Commit)
06202a90
authored
Ock 24, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1399266 Uncaught exception
Change-Id: I1066fda2258e6acbbbad23256f815975564e5e61
üst
b13b78a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
cow_wrapper_clients.hxx
o3tl/qa/cow_wrapper_clients.hxx
+5
-9
No files found.
o3tl/qa/cow_wrapper_clients.hxx
Dosyayı görüntüle @
06202a90
...
...
@@ -22,6 +22,7 @@
#include "o3tl/cow_wrapper.hxx"
#include "cppunit/extensions/HelperMacros.h"
#include <assert.h>
/* Definition of Cow_Wrapper_Clients classes */
...
...
@@ -153,15 +154,12 @@ struct BogusRefCountPolicy
static
sal_uInt32
s_nEndOfScope
;
typedef
sal_uInt32
ref_count_t
;
static
void
incrementCount
(
ref_count_t
&
rCount
)
{
if
(
s_bShouldIncrement
)
{
++
rCount
;
s_bShouldIncrement
=
false
;
}
else
CPPUNIT_FAIL
(
"Ref-counting policy incremented when it should not have."
);
assert
(
s_bShouldIncrement
&&
"Ref-counting policy incremented when it should not have."
);
++
rCount
;
s_bShouldIncrement
=
false
;
}
static
bool
decrementCount
(
ref_count_t
&
rCount
)
{
assert
((
s_nEndOfScope
||
s_bShouldDecrement
)
&&
"Ref-counting policy decremented when it should not have."
);
if
(
s_nEndOfScope
)
{
--
rCount
;
...
...
@@ -172,8 +170,6 @@ struct BogusRefCountPolicy
--
rCount
;
s_bShouldDecrement
=
false
;
}
else
CPPUNIT_FAIL
(
"Ref-counting policy decremented when it should not have."
);
return
rCount
!=
0
;
}
};
...
...
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