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
06aa3dd5
Kaydet (Commit)
06aa3dd5
authored
Nis 06, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improved loplugin:redundantcast, static_cast on arithmetic types: binaryurp
Change-Id: I109c8a2c51c7916ce8f8964b57ee45747868844f
üst
0446cca0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
unmarshal.cxx
binaryurp/source/unmarshal.cxx
+2
-5
No files found.
binaryurp/source/unmarshal.cxx
Dosyayı görüntüle @
06aa3dd5
...
...
@@ -145,8 +145,7 @@ css::uno::TypeDescription Unmarshal::readType() {
"binaryurp::Unmarshal: cache flag of simple type is set"
);
}
return
css
::
uno
::
TypeDescription
(
*
typelib_static_type_getByTypeClass
(
static_cast
<
typelib_TypeClass
>
(
tc
)));
*
typelib_static_type_getByTypeClass
(
tc
));
case
typelib_TypeClass_SEQUENCE
:
case
typelib_TypeClass_ENUM
:
case
typelib_TypeClass_STRUCT
:
...
...
@@ -163,9 +162,7 @@ css::uno::TypeDescription Unmarshal::readType() {
}
else
{
OUString
const
str
(
readString
());
css
::
uno
::
TypeDescription
t
(
str
);
if
(
!
t
.
is
()
||
t
.
get
()
->
eTypeClass
!=
static_cast
<
typelib_TypeClass
>
(
tc
))
{
if
(
!
t
.
is
()
||
t
.
get
()
->
eTypeClass
!=
tc
)
{
throw
css
::
io
::
IOException
(
"binaryurp::Unmarshal: type with unknown name: "
+
str
);
...
...
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