summaryrefslogtreecommitdiff
path: root/svl/inc/svl/adrparse.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/inc/svl/adrparse.hxx')
-rw-r--r--svl/inc/svl/adrparse.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/svl/inc/svl/adrparse.hxx b/svl/inc/svl/adrparse.hxx
index f2a85b9cacd5..dbb671889ec3 100644
--- a/svl/inc/svl/adrparse.hxx
+++ b/svl/inc/svl/adrparse.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -29,8 +30,8 @@
#define _ADRPARSE_HXX
#include "svl/svldllapi.h"
-#include <tools/list.hxx>
#include <tools/string.hxx>
+#include <vector>
//============================================================================
struct SvAddressEntry_Impl
@@ -45,7 +46,7 @@ struct SvAddressEntry_Impl
};
//============================================================================
-DECLARE_LIST(SvAddressList_Impl, SvAddressEntry_Impl *)
+typedef ::std::vector< SvAddressEntry_Impl* > SvAddressList_Impl;
//============================================================================
class SVL_DLLPUBLIC SvAddressParser
@@ -61,7 +62,7 @@ public:
~SvAddressParser();
- sal_Int32 Count() const { return m_bHasFirst ? m_aRest.Count() + 1 : 0; }
+ sal_Int32 Count() const { return m_bHasFirst ? m_aRest.size() + 1 : 0; }
inline UniString const & GetEmailAddress(sal_Int32 nIndex) const;
@@ -94,14 +95,15 @@ inline UniString const & SvAddressParser::GetEmailAddress(sal_Int32 nIndex)
const
{
return nIndex == 0 ? m_aFirst.m_aAddrSpec :
- m_aRest.GetObject(nIndex - 1)->m_aAddrSpec;
+ m_aRest[ nIndex - 1 ]->m_aAddrSpec;
}
inline UniString const & SvAddressParser::GetRealName(sal_Int32 nIndex) const
{
return nIndex == 0 ? m_aFirst.m_aRealName :
- m_aRest.GetObject(nIndex - 1)->m_aRealName;
+ m_aRest[ nIndex - 1 ]->m_aRealName;
}
#endif // _ADRPARSE_HXX
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */