summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2000-11-03 15:55:08 +0000
committerHans-Joachim Lankenau <hjs@openoffice.org>2000-11-03 15:55:08 +0000
commit17606bc996690491d119ebc99b5f74649b95f6da (patch)
tree3c7d7c081862c30a310aa7f0241a32cc54a056ec /tools/source
parentb1a63f5da7e6f9ab5ed0a9cc3b71536c3baa2b47 (diff)
use min/max from stl
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/stream/stream.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index adca76dfd39e..66a4679639d5 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: stream.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:03:09 $
+ * last change: $Author: hjs $ $Date: 2000-11-03 16:55:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -98,6 +98,7 @@ c |= nSwapTmp;
#define ENABLE_BYTESTRING_STREAM_OPERATORS
#include <stream.hxx>
#include <osl/thread.h>
+#include <algorithm>
// -----------------------------------------------------------------------
@@ -354,7 +355,7 @@ ErrCode SvAsyncLockBytes::ReadAt(ULONG nPos, void * pBuffer, ULONG nCount,
return SvOpenLockBytes::ReadAt(nPos, pBuffer, nCount, pRead);
else
{
- ULONG nTheCount = min(nPos < m_nSize ? m_nSize - nPos : 0, nCount);
+ ULONG nTheCount = std::min(nPos < m_nSize ? m_nSize - nPos : 0, nCount);
ErrCode nError = SvOpenLockBytes::ReadAt(nPos, pBuffer, nTheCount,
pRead);
return !nCount || nTheCount == nCount || nError ? nError :
@@ -371,7 +372,7 @@ ErrCode SvAsyncLockBytes::WriteAt(ULONG nPos, const void * pBuffer,
return SvOpenLockBytes::WriteAt(nPos, pBuffer, nCount, pWritten);
else
{
- ULONG nTheCount = min(nPos < m_nSize ? m_nSize - nPos : 0, nCount);
+ ULONG nTheCount = std::min(nPos < m_nSize ? m_nSize - nPos : 0, nCount);
ErrCode nError = SvOpenLockBytes::WriteAt(nPos, pBuffer, nTheCount,
pWritten);
return !nCount || nTheCount == nCount || nError ? nError :