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
85ce6a24
Kaydet (Commit)
85ce6a24
authored
Tem 09, 2015
tarafından
Matthew J. Francis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Eliminate pointless string copies
Change-Id: I30049795f511704a43ed0eaf8dd0841c7109c334
üst
240d6c9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
introspection.cxx
stoc/source/inspect/introspection.cxx
+7
-17
No files found.
stoc/source/inspect/introspection.cxx
Dosyayı görüntüle @
85ce6a24
...
@@ -1489,22 +1489,12 @@ Any ImplIntrospectionAccess::getMaterial() throw(RuntimeException, std::exceptio
...
@@ -1489,22 +1489,12 @@ Any ImplIntrospectionAccess::getMaterial() throw(RuntimeException, std::exceptio
return
maInspectedObject
;
return
maInspectedObject
;
}
}
// Hilfs-Funktion zur LowerCase-Wandlung eines OUString
OUString
toLower
(
const
OUString
&
aUStr
)
{
// Tabelle fuer XExactName pflegen
OUString
aOWStr
(
aUStr
.
getStr
()
);
OUString
aOWLowerStr
=
aOWStr
.
toAsciiLowerCase
();
OUString
aLowerUStr
(
aOWLowerStr
.
getStr
()
);
return
aLowerUStr
;
}
// Methoden von XExactName
// Methoden von XExactName
OUString
ImplIntrospectionAccess
::
getExactName
(
const
OUString
&
rApproximateName
)
throw
(
RuntimeException
,
std
::
exception
)
OUString
ImplIntrospectionAccess
::
getExactName
(
const
OUString
&
rApproximateName
)
throw
(
RuntimeException
,
std
::
exception
)
{
{
OUString
aRetStr
;
OUString
aRetStr
;
LowerToExactNameMap
::
iterator
aIt
=
LowerToExactNameMap
::
iterator
aIt
=
mpStaticImpl
->
maLowerToExactNameMap
.
find
(
toLower
(
rApproximateName
)
);
mpStaticImpl
->
maLowerToExactNameMap
.
find
(
rApproximateName
.
toAsciiLowerCase
(
)
);
if
(
!
(
aIt
==
mpStaticImpl
->
maLowerToExactNameMap
.
end
()
)
)
if
(
!
(
aIt
==
mpStaticImpl
->
maLowerToExactNameMap
.
end
()
)
)
aRetStr
=
(
*
aIt
).
second
;
aRetStr
=
(
*
aIt
).
second
;
return
aRetStr
;
return
aRetStr
;
...
@@ -1898,7 +1888,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
...
@@ -1898,7 +1888,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
rPropNameMap
[
aPropName
]
=
rPropCount
;
rPropNameMap
[
aPropName
]
=
rPropCount
;
// Tabelle fuer XExactName pflegen
// Tabelle fuer XExactName pflegen
rLowerToExactNameMap
[
toLower
(
aPropName
)
]
=
aPropName
;
rLowerToExactNameMap
[
aPropName
.
toAsciiLowerCase
(
)
]
=
aPropName
;
}
}
else
else
{
{
...
@@ -1989,7 +1979,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
...
@@ -1989,7 +1979,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
rPropNameMap
[
aPropName
]
=
rPropCount
;
rPropNameMap
[
aPropName
]
=
rPropCount
;
// Tabelle fuer XExactName pflegen
// Tabelle fuer XExactName pflegen
rLowerToExactNameMap
[
toLower
(
aPropName
)
]
=
aPropName
;
rLowerToExactNameMap
[
aPropName
.
toAsciiLowerCase
(
)
]
=
aPropName
;
// Field merken
// Field merken
IntrospectionAccessStatic_Impl
::
checkInterfaceArraySize
(
pAccess
->
aInterfaceSeq1
,
IntrospectionAccessStatic_Impl
::
checkInterfaceArraySize
(
pAccess
->
aInterfaceSeq1
,
...
@@ -2169,7 +2159,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
...
@@ -2169,7 +2159,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
rPropNameMap
[
aPropName
]
=
rPropCount
;
rPropNameMap
[
aPropName
]
=
rPropCount
;
// Tabelle fuer XExactName pflegen
// Tabelle fuer XExactName pflegen
rLowerToExactNameMap
[
toLower
(
aPropName
)
]
=
aPropName
;
rLowerToExactNameMap
[
aPropName
.
toAsciiLowerCase
(
)
]
=
aPropName
;
// get-Methode merken
// get-Methode merken
IntrospectionAccessStatic_Impl
::
checkInterfaceArraySize
(
pAccess
->
aInterfaceSeq1
,
IntrospectionAccessStatic_Impl
::
checkInterfaceArraySize
(
pAccess
->
aInterfaceSeq1
,
...
@@ -2359,7 +2349,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
...
@@ -2359,7 +2349,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
rPropNameMap
[
aPropName
]
=
rPropCount
;
rPropNameMap
[
aPropName
]
=
rPropCount
;
// Tabelle fuer XExactName pflegen
// Tabelle fuer XExactName pflegen
rLowerToExactNameMap
[
toLower
(
aPropName
)
]
=
aPropName
;
rLowerToExactNameMap
[
aPropName
.
toAsciiLowerCase
(
)
]
=
aPropName
;
// set-Methode merken
// set-Methode merken
IntrospectionAccessStatic_Impl
::
checkInterfaceArraySize
(
pAccess
->
aInterfaceSeq2
,
IntrospectionAccessStatic_Impl
::
checkInterfaceArraySize
(
pAccess
->
aInterfaceSeq2
,
...
@@ -2421,7 +2411,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
...
@@ -2421,7 +2411,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
rMethodNameMap
[
aMethName2
]
=
iAllExportedMethod
;
rMethodNameMap
[
aMethName2
]
=
iAllExportedMethod
;
// Tabelle fuer XExactName pflegen
// Tabelle fuer XExactName pflegen
rLowerToExactNameMap
[
toLower
(
aMethName2
)
]
=
aMethName2
;
rLowerToExactNameMap
[
aMethName2
.
toAsciiLowerCase
(
)
]
=
aMethName2
;
}
}
else
else
{
{
...
@@ -2580,7 +2570,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
...
@@ -2580,7 +2570,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
rPropNameMap
[
aPropName
]
=
rPropCount
;
rPropNameMap
[
aPropName
]
=
rPropCount
;
// Tabelle fuer XExactName pflegen
// Tabelle fuer XExactName pflegen
rLowerToExactNameMap
[
toLower
(
aPropName
)
]
=
aPropName
;
rLowerToExactNameMap
[
aPropName
.
toAsciiLowerCase
(
)
]
=
aPropName
;
// Field merken
// Field merken
IntrospectionAccessStatic_Impl
::
checkInterfaceArraySize
(
pAccess
->
aInterfaceSeq1
,
IntrospectionAccessStatic_Impl
::
checkInterfaceArraySize
(
pAccess
->
aInterfaceSeq1
,
...
...
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