summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp/gridctrl.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2001-10-12 15:14:16 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2001-10-12 15:14:16 +0000
commit2f4c45452af3905aa91a244d23e5ed5b32ac65d3 (patch)
tree7b631d7b3341a84fb12e20347265e715cedcc313 /svx/source/fmcomp/gridctrl.cxx
parentdb835a6110b2cb3212cb2c59988b81a4521863b6 (diff)
#92830#: required change: std::min()/std::max()
Diffstat (limited to 'svx/source/fmcomp/gridctrl.cxx')
-rw-r--r--svx/source/fmcomp/gridctrl.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index f3f1bc9177..500baef593 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: gridctrl.cxx,v $
*
- * $Revision: 1.37 $
+ * $Revision: 1.38 $
*
- * last change: $Author: fs $ $Date: 2001-10-10 16:07:23 $
+ * last change: $Author: hr $ $Date: 2001-10-12 16:10:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -187,6 +187,8 @@ String OBJECTTEXT = String::CreateFromAscii("<OBJECT>");
#include "trace.hxx"
#endif
+#include <algorithm>
+
using namespace ::dbtools;
using namespace ::svxform;
using namespace ::svt;
@@ -2455,7 +2457,7 @@ void DbGridControl::MoveToLast()
//------------------------------------------------------------------------------
void DbGridControl::MoveToPrev()
{
- long nNewRow = max(GetCurRow() - 1L, 0L);
+ long nNewRow = std::max(GetCurRow() - 1L, 0L);
if (GetCurRow() != nNewRow)
MoveToPosition(nNewRow);
}
@@ -2469,7 +2471,7 @@ void DbGridControl::MoveToNext()
if (m_nTotalCount > 0)
{
// move the data cursor to the right position
- long nNewRow = min(GetRowCount() - 1, GetCurRow() + 1);
+ long nNewRow = std::min(GetRowCount() - 1, GetCurRow() + 1);
if (GetCurRow() != nNewRow)
MoveToPosition(nNewRow);
}