From eb77ab198b56bf6ce1b01da05a1937c6967f6380 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Tue, 5 Feb 2002 12:09:25 +0000 Subject: #65293# SAB:change the first value of the pair to const so it pass the solaris compiler --- unotools/source/accessibility/accessiblestatesethelper.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/unotools/source/accessibility/accessiblestatesethelper.cxx b/unotools/source/accessibility/accessiblestatesethelper.cxx index 41cad106c584..b82cd2049045 100644 --- a/unotools/source/accessibility/accessiblestatesethelper.cxx +++ b/unotools/source/accessibility/accessiblestatesethelper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: accessiblestatesethelper.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: sab $ $Date: 2002-01-30 15:44:32 $ + * last change: $Author: vg $ $Date: 2002-02-05 13:09:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -113,9 +113,7 @@ sal_Bool AccessibleStateSetHelperImpl::Contains (sal_Int16 aState) void AccessibleStateSetHelperImpl::AddState(sal_Int16 aState) throw (uno::RuntimeException) { - std::pair< sal_Int16, sal_Bool > aStatePair; - aStatePair.first = aState; - aStatePair.second = sal_True; + std::pair< const sal_Int16, sal_Bool > aStatePair(aState, sal_True); maStates.insert(aStatePair); } -- cgit v1.2.3