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
8d4d1766
Kaydet (Commit)
8d4d1766
authored
Eki 01, 2010
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cleanup UHashMap fix.
üst
e89b0abf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
46 deletions
+3
-46
unoprov.cxx
svx/source/unodraw/unoprov.cxx
+2
-45
unoshape.cxx
svx/source/unodraw/unoshape.cxx
+1
-1
No files found.
svx/source/unodraw/unoprov.cxx
Dosyayı görüntüle @
8d4d1766
...
@@ -921,55 +921,12 @@ UINT32 UHashMap::getId( const OUString& rCompareString )
...
@@ -921,55 +921,12 @@ UINT32 UHashMap::getId( const OUString& rCompareString )
return
it
->
second
;
return
it
->
second
;
}
}
UHashMapEntry
pSdrShapeIdentifierMap
[]
=
{
{
RTL_CONSTASCII_STRINGPARAM
(
""
),
0
)
};
// ---------------------------------------------------------------------
UHashMap
aSdrShapeIdentifierMap
(
pSdrShapeIdentifierMap
);
UHashMap
::
UHashMap
(
UHashMapEntry
*
pMap
)
{
while
(
pMap
->
aIdentifier
.
getLength
()
)
{
OUString
aStr
(
pMap
->
aIdentifier
);
size_t
nHash
=
aStr
.
hashCode
()
&
(
HASHARRAYSIZE
-
1
);
m_aHashList
[
nHash
].
Insert
(
pMap
);
pMap
++
;
}
}
// ---------------------------------------------------------------------
UINT32
UHashMap
::
getId
(
const
OUString
&
rCompareString
)
{
size_t
nHash
=
rCompareString
.
hashCode
()
&
(
HASHARRAYSIZE
-
1
);
UHashMapEntryList
&
rList
=
m_aHashList
[
nHash
];
UHashMapEntry
*
pMap
=
rList
.
First
();
while
(
pMap
)
{
if
(
rCompareString
==
pMap
->
aIdentifier
)
return
pMap
->
nId
;
pMap
=
rList
.
Next
();
}
return
UHASHMAP_NOTFOUND
;
}
/***********************************************************************
/***********************************************************************
* class SvxUnoPropertyMapProvider *
* class SvxUnoPropertyMapProvider *
***********************************************************************/
***********************************************************************/
SvxUnoPropertyMapProvider
aSvxMapProvider
;
EXTERN_C
EXTERN_C
#if defined( PM2 ) && (!defined( CSET ) && !defined ( MTW ) && !defined( WTC ))
#if defined( PM2 ) && (!defined( CSET ) && !defined ( MTW ) && !defined( WTC ))
int
_stdcall
int
_stdcall
...
...
svx/source/unodraw/unoshape.cxx
Dosyayı görüntüle @
8d4d1766
...
@@ -1385,7 +1385,7 @@ void SAL_CALL SvxShape::setName( const ::rtl::OUString& aName ) throw(::com::sun
...
@@ -1385,7 +1385,7 @@ void SAL_CALL SvxShape::setName( const ::rtl::OUString& aName ) throw(::com::sun
//----------------------------------------------------------------------
//----------------------------------------------------------------------
OUString
SAL_CALL
SvxShape
::
getShapeType
()
throw
(
uno
::
RuntimeException
)
OUString
SAL_CALL
SvxShape
::
getShapeType
()
throw
(
uno
::
RuntimeException
)
{
{
if
(
!
aShapeType
.
getLength
()
)
if
(
!
m
aShapeType
.
getLength
()
)
return
UHashMap
::
getNameFromId
(
mpImpl
->
mnObjId
);
return
UHashMap
::
getNameFromId
(
mpImpl
->
mnObjId
);
else
else
return
maShapeType
;
return
maShapeType
;
...
...
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