summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/sequenceashashmap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/sequenceashashmap.cxx')
-rw-r--r--comphelper/source/misc/sequenceashashmap.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/comphelper/source/misc/sequenceashashmap.cxx b/comphelper/source/misc/sequenceashashmap.cxx
index c1b9cd9463b4..ea583797ee2a 100644
--- a/comphelper/source/misc/sequenceashashmap.cxx
+++ b/comphelper/source/misc/sequenceashashmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -124,7 +124,7 @@ void SequenceAsHashMap::operator<<(const css::uno::Sequence< css::uno::Any >& lS
{
sal_Int32 c = lSource.getLength();
sal_Int32 i = 0;
-
+
for (i=0; i<c; ++i)
{
css::beans::PropertyValue lP;
@@ -137,10 +137,10 @@ void SequenceAsHashMap::operator<<(const css::uno::Sequence< css::uno::Any >& lS
throw css::beans::IllegalTypeException(
::rtl::OUString::createFromAscii("PropertyValue struct contains no usefull informations."),
css::uno::Reference< css::uno::XInterface >());
- (*this)[lP.Name] = lP.Value;
+ (*this)[lP.Name] = lP.Value;
continue;
}
-
+
css::beans::NamedValue lN;
if (lSource[i] >>= lN)
{
@@ -151,12 +151,12 @@ void SequenceAsHashMap::operator<<(const css::uno::Sequence< css::uno::Any >& lS
throw css::beans::IllegalTypeException(
::rtl::OUString::createFromAscii("NamedValue struct contains no usefull informations."),
css::uno::Reference< css::uno::XInterface >());
- (*this)[lN.Name] = lN.Value;
+ (*this)[lN.Name] = lN.Value;
continue;
}
// ignore VOID Any ... but reject wrong filled ones!
- if (lSource[i].hasValue())
+ if (lSource[i].hasValue())
throw css::beans::IllegalTypeException(
::rtl::OUString::createFromAscii("Any contains wrong type."),
css::uno::Reference< css::uno::XInterface >());
@@ -272,7 +272,7 @@ const css::uno::Sequence< css::uno::Any > SequenceAsHashMap::getAsConstAnyList(:
aProp.Value = pThis->second;
pDestination[i] = css::uno::makeAny(aProp);
}
-
+
++i;
}
@@ -312,10 +312,10 @@ sal_Bool SequenceAsHashMap::match(const SequenceAsHashMap& rCheck) const
const ::rtl::OUString& sCheckName = pCheck->first;
const css::uno::Any& aCheckValue = pCheck->second;
const_iterator pFound = find(sCheckName);
-
+
if (pFound == end())
return sal_False;
-
+
const css::uno::Any& aFoundValue = pFound->second;
if (aFoundValue != aCheckValue)
return sal_False;
@@ -336,7 +336,7 @@ void SequenceAsHashMap::update(const SequenceAsHashMap& rUpdate)
{
const ::rtl::OUString& sName = pUpdate->first;
const css::uno::Any& aValue = pUpdate->second;
-
+
(*this)[sName] = aValue;
}
}