From d8275cd63bd0821842c5b27250cb32dbe90e9407 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Fri, 12 Oct 2001 15:14:16 +0000 Subject: #92830#: required change: std::min()/std::max() --- tools/workben/hashtbl.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/workben/hashtbl.cxx b/tools/workben/hashtbl.cxx index 73a5960bac28..71308b8f7026 100644 --- a/tools/workben/hashtbl.cxx +++ b/tools/workben/hashtbl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: hashtbl.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:03:11 $ + * last change: $Author: hr $ $Date: 2001-10-12 16:14:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -62,6 +62,8 @@ #include #include "hashtbl.hxx" +#include + // ------------------------------------------------------------- // class HashItem // @@ -116,8 +118,8 @@ HashTable::HashTable(ULONG lSize, BOOL bOwner, double dMaxLoadFactor, double dGr m_lSize = lSize; m_bOwner = bOwner; m_lElem = 0; - m_dMaxLoadFactor = max(0.5,min(1.0,dMaxLoadFactor)); // 0.5 ... 1.0 - m_dGrowFactor = max(1.3,(5.0,dGrowFactor)); // 1.3 ... 5.0 + m_dMaxLoadFactor = std::max(0.5,std::min(1.0,dMaxLoadFactor)); // 0.5 ... 1.0 + m_dGrowFactor = std::max(1.3,(5.0,dGrowFactor)); // 1.3 ... 5.0 m_pData = new HashItem [lSize]; // Statistik -- cgit