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
5d58e773
Kaydet (Commit)
5d58e773
authored
Mar 07, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1353440 try and refactor to avoid Argument cannot be negative
Change-Id: I3a75e27ba1b721a99e0547b418df883e2c1753b4
üst
3dda6452
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
introspection.cxx
stoc/source/inspect/introspection.cxx
+7
-14
No files found.
stoc/source/inspect/introspection.cxx
Dosyayı görüntüle @
5d58e773
...
...
@@ -308,7 +308,6 @@ sal_Int32 IntrospectionAccessStatic_Impl::getMethodIndex( const OUString& aMetho
}
// #95159 Check if full qualified name matches
sal_Int32
iHashResult
=
-
1
;
sal_Int32
nSearchFrom
=
aMethodName
.
getLength
();
while
(
true
)
{
...
...
@@ -332,19 +331,17 @@ sal_Int32 IntrospectionAccessStatic_Impl::getMethodIndex( const OUString& aMetho
// If this is a valid class it could be the right method
// Could be the right method, type has to be checked
iHashResult
=
aIt
->
second
;
const
sal_Int32
iHashResult
=
aIt
->
second
;
const
Reference
<
XIdlMethod
>
xMethod
=
maAllMethodSeq
.
at
(
iHashResult
)
;
const
Reference
<
XIdlMethod
>
xMethod
=
maAllMethodSeq
[
iHashResult
]
;
Reference
<
XIdlClass
>
xMethClass
=
xMethod
->
getDeclaringClass
();
if
(
xClass
->
equals
(
xMethClass
)
)
{
break
;
return
iHashResult
;
}
else
{
iHashResult
=
-
1
;
// Could also be another method with the same name
// Iterate over all methods
size_t
nLen
=
maAllMethodSeq
.
size
();
...
...
@@ -357,14 +354,10 @@ sal_Int32 IntrospectionAccessStatic_Impl::getMethodIndex( const OUString& aMetho
if
(
xClass
->
equals
(
xMethClass2
)
)
{
iHashResult
=
i
;
break
;
return
i
;
}
}
}
if
(
iHashResult
!=
-
1
)
break
;
}
}
}
...
...
@@ -373,7 +366,7 @@ sal_Int32 IntrospectionAccessStatic_Impl::getMethodIndex( const OUString& aMetho
if
(
nSearchFrom
<
0
)
break
;
}
return
iHashResult
;
return
-
1
;
}
void
IntrospectionAccessStatic_Impl
::
setPropertyValue
(
const
Any
&
obj
,
const
OUString
&
aPropertyName
,
const
Any
&
aValue
)
const
...
...
@@ -2378,7 +2371,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
{
sal_Int32
iHashResult
=
aIt
->
second
;
Reference
<
XIdlMethod
>
xExistingMethod
=
pAccess
->
maAllMethodSeq
.
at
(
iHashResult
)
;
Reference
<
XIdlMethod
>
xExistingMethod
=
pAccess
->
maAllMethodSeq
[
iHashResult
]
;
Reference
<
XIdlClass
>
xExistingMethClass
=
xExistingMethod
->
getDeclaringClass
();
...
...
@@ -2387,7 +2380,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
continue
;
}
pAccess
->
maAllMethodSeq
.
at
(
iAllExportedMethod
)
=
rxMethod
;
pAccess
->
maAllMethodSeq
[
iAllExportedMethod
]
=
rxMethod
;
// If a concept has been set, is the method "normal"?
sal_Int32
&
rMethodConcept_i
=
pLocalMethodConcepts
[
i
];
...
...
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