summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2002-02-05 12:09:25 +0000
committerVladimir Glazounov <vg@openoffice.org>2002-02-05 12:09:25 +0000
commiteb77ab198b56bf6ce1b01da05a1937c6967f6380 (patch)
tree3b790836e77b3135bc8ac65ca1bae07ccce85b00 /unotools
parent9322a9d283bde3d35d97c27f0a1e3e7f7c40f81f (diff)
#65293# SAB:change the first value of the pair to const so it pass the solaris compiler
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/accessibility/accessiblestatesethelper.cxx8
1 files 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);
}