diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2000-11-07 13:15:49 +0000 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2000-11-07 13:15:49 +0000 |
commit | ce5ce15038fbbb8ec98fb2dbaa722def37238648 (patch) | |
tree | 24f7208f225d385ea8bec698dff6462d3cfa6081 /sw/source/core | |
parent | 94e5b59cf841026e48cb3b0a38df885914d969f2 (diff) |
use min/max from stl
Diffstat (limited to 'sw/source/core')
-rw-r--r-- | sw/source/core/unocore/unoidx.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx index 0a70f1efd287..6b1b8e66bedd 100644 --- a/sw/source/core/unocore/unoidx.cxx +++ b/sw/source/core/unocore/unoidx.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoidx.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: os $ $Date: 2000-11-07 11:18:00 $ + * last change: $Author: hjs $ $Date: 2000-11-07 14:15:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,6 +59,9 @@ * ************************************************************************/ +#include <string> +#include <algorithm> + #ifdef PRECOMPILED #include "core_pch.hxx" #endif @@ -1531,7 +1534,7 @@ void SwXDocumentIndexMark::setPropertyValue(const OUString& rPropertyName, // aMark.SetAlternativeText(lcl_AnyToString(aValue)); // break; case WID_LEVEL: - aMark.SetLevel(min(MAXLEVEL, (sal_Int8)lcl_AnyToInt16(aValue))); + aMark.SetLevel(std::min((sal_Int8) MAXLEVEL, (sal_Int8)lcl_AnyToInt16(aValue))); break; case WID_PRIMARY_KEY : aMark.SetPrimaryKey(lcl_AnyToString(aValue)); |