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
f5419886
Kaydet (Commit)
f5419886
authored
Agu 22, 2011
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix dubious std::lower_bound usage that breaks in a _DEBUG MSVC build
üst
096d36c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
20 deletions
+10
-20
resmgr.cxx
tools/source/rc/resmgr.cxx
+10
-20
No files found.
tools/source/rc/resmgr.cxx
Dosyayı görüntüle @
f5419886
...
@@ -518,18 +518,6 @@ struct ImpContentLessCompare : public ::std::binary_function< ImpContent, ImpCon
...
@@ -518,18 +518,6 @@ struct ImpContentLessCompare : public ::std::binary_function< ImpContent, ImpCon
}
}
};
};
struct
ImpContentMixLessCompare
:
public
::
std
::
binary_function
<
ImpContent
,
sal_uInt64
,
bool
>
{
inline
bool
operator
()
(
const
ImpContent
&
lhs
,
const
sal_uInt64
&
rhs
)
const
{
return
lhs
.
nTypeAndId
<
rhs
;
}
inline
bool
operator
()
(
const
sal_uInt64
&
lhs
,
const
ImpContent
&
rhs
)
const
{
return
lhs
<
rhs
.
nTypeAndId
;
}
};
static
ResHookProc
pImplResHookProc
=
0
;
static
ResHookProc
pImplResHookProc
=
0
;
InternalResMgr
::
InternalResMgr
(
const
OUString
&
rFileURL
,
InternalResMgr
::
InternalResMgr
(
const
OUString
&
rFileURL
,
...
@@ -667,12 +655,13 @@ sal_Bool InternalResMgr::Create()
...
@@ -667,12 +655,13 @@ sal_Bool InternalResMgr::Create()
sal_Bool
InternalResMgr
::
IsGlobalAvailable
(
RESOURCE_TYPE
nRT
,
sal_uInt32
nId
)
const
sal_Bool
InternalResMgr
::
IsGlobalAvailable
(
RESOURCE_TYPE
nRT
,
sal_uInt32
nId
)
const
{
{
// Anfang der Strings suchen
// Anfang der Strings suchen
sal_uInt64
nValue
=
((
sal_uInt64
(
nRT
)
<<
32
)
|
nId
);
ImpContent
aValue
;
aValue
.
nTypeAndId
=
((
sal_uInt64
(
nRT
)
<<
32
)
|
nId
);
ImpContent
*
pFind
=
::
std
::
lower_bound
(
pContent
,
ImpContent
*
pFind
=
::
std
::
lower_bound
(
pContent
,
pContent
+
nEntries
,
pContent
+
nEntries
,
n
Value
,
a
Value
,
ImpContent
Mix
LessCompare
());
ImpContentLessCompare
());
return
(
pFind
!=
(
pContent
+
nEntries
))
&&
(
pFind
->
nTypeAndId
==
nValue
);
return
(
pFind
!=
(
pContent
+
nEntries
))
&&
(
pFind
->
nTypeAndId
==
aValue
.
nTypeAndId
);
}
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
...
@@ -685,13 +674,14 @@ void* InternalResMgr::LoadGlobalRes( RESOURCE_TYPE nRT, sal_uInt32 nId,
...
@@ -685,13 +674,14 @@ void* InternalResMgr::LoadGlobalRes( RESOURCE_TYPE nRT, sal_uInt32 nId,
pResUseDump
->
erase
(
(
sal_uInt64
(
nRT
)
<<
32
)
|
nId
);
pResUseDump
->
erase
(
(
sal_uInt64
(
nRT
)
<<
32
)
|
nId
);
#endif
#endif
// Anfang der Strings suchen
// Anfang der Strings suchen
sal_uInt64
nValue
=
((
sal_uInt64
(
nRT
)
<<
32
)
|
nId
);
ImpContent
aValue
;
aValue
.
nTypeAndId
=
((
sal_uInt64
(
nRT
)
<<
32
)
|
nId
);
ImpContent
*
pEnd
=
(
pContent
+
nEntries
);
ImpContent
*
pEnd
=
(
pContent
+
nEntries
);
ImpContent
*
pFind
=
::
std
::
lower_bound
(
pContent
,
ImpContent
*
pFind
=
::
std
::
lower_bound
(
pContent
,
pEnd
,
pEnd
,
n
Value
,
a
Value
,
ImpContent
Mix
LessCompare
());
ImpContentLessCompare
());
if
(
pFind
&&
(
pFind
!=
pEnd
)
&&
(
pFind
->
nTypeAndId
==
nValue
)
)
if
(
pFind
&&
(
pFind
!=
pEnd
)
&&
(
pFind
->
nTypeAndId
==
aValue
.
nTypeAndId
)
)
{
{
if
(
nRT
==
RSC_STRING
&&
bEqual2Content
)
if
(
nRT
==
RSC_STRING
&&
bEqual2Content
)
{
{
...
...
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