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
bb20d370
Kaydet (Commit)
bb20d370
authored
Mar 29, 2014
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tools: try to fix std::min ambiguity for MSVC
Change-Id: Id81ad8702d513c5bb3f4f8de2f9d7c75c7852d4d
üst
64febc8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
stream.cxx
tools/source/stream/stream.cxx
+4
-2
No files found.
tools/source/stream/stream.cxx
Dosyayı görüntüle @
bb20d370
...
...
@@ -265,7 +265,8 @@ ErrCode SvAsyncLockBytes::ReadAt(sal_uInt64 const nPos, void * pBuffer, sal_Size
return
SvOpenLockBytes
::
ReadAt
(
nPos
,
pBuffer
,
nCount
,
pRead
);
else
{
sal_Size
nTheCount
=
std
::
min
(
nPos
<
m_nSize
?
m_nSize
-
nPos
:
0
,
nCount
);
sal_Size
nTheCount
=
std
::
min
<
sal_Size
>
(
nPos
<
m_nSize
?
m_nSize
-
nPos
:
0
,
nCount
);
ErrCode
nError
=
SvOpenLockBytes
::
ReadAt
(
nPos
,
pBuffer
,
nTheCount
,
pRead
);
return
!
nCount
||
nTheCount
==
nCount
||
nError
?
nError
:
...
...
@@ -281,7 +282,8 @@ ErrCode SvAsyncLockBytes::WriteAt(sal_uInt64 const nPos, const void * pBuffer,
return
SvOpenLockBytes
::
WriteAt
(
nPos
,
pBuffer
,
nCount
,
pWritten
);
else
{
sal_Size
nTheCount
=
std
::
min
(
nPos
<
m_nSize
?
m_nSize
-
nPos
:
0
,
nCount
);
sal_Size
nTheCount
=
std
::
min
<
sal_Size
>
(
nPos
<
m_nSize
?
m_nSize
-
nPos
:
0
,
nCount
);
ErrCode
nError
=
SvOpenLockBytes
::
WriteAt
(
nPos
,
pBuffer
,
nTheCount
,
pWritten
);
return
!
nCount
||
nTheCount
==
nCount
||
nError
?
nError
:
...
...
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