summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-11-10 21:05:57 +0100
committerMichael Stahl <mstahl@redhat.com>2015-11-10 21:48:38 +0100
commit228e3408af85e74023039f17240355fccc0d780f (patch)
treeb87e1a4e8992408987de9dcd6c37eec866b1d03e /sw
parent86043a2f57a9f50cabe689dd5e9f8db0dbd16f80 (diff)
sw: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: I91f8fa3097c216230e4a9eaf1339157dd85bfdfc
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/html/htmltab.cxx2
-rw-r--r--sw/source/filter/html/svxcss1.cxx14
-rw-r--r--sw/source/filter/html/svxcss1.hxx7
3 files changed, 12 insertions, 11 deletions
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index 53cb06bbd779..5f207c10adc7 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -56,6 +56,8 @@
#include "swcss1.hxx"
#include <numrule.hxx>
+#include <boost/ptr_container/ptr_vector.hpp>
+
#define NETSCAPE_DFLT_BORDER 1
#define NETSCAPE_DFLT_CELLSPACING 2
diff --git a/sw/source/filter/html/svxcss1.cxx b/sw/source/filter/html/svxcss1.cxx
index 23919ccbe5c2..7cfe02dd4dab 100644
--- a/sw/source/filter/html/svxcss1.cxx
+++ b/sw/source/filter/html/svxcss1.cxx
@@ -664,18 +664,18 @@ bool SvxCSS1Parser::SelectorParsed( CSS1Selector *pSelector, bool bFirst )
{
OSL_ENSURE( pSheetItemSet, "Where is the Item-Set for Style-Sheets?" );
- for (size_t i = 0; i < aSelectors.size(); ++i)
+ for (size_t i = 0; i < m_Selectors.size(); ++i)
{
- StyleParsed( &aSelectors[i], *pSheetItemSet, *pSheetPropInfo );
+ StyleParsed(m_Selectors[i].get(), *pSheetItemSet, *pSheetPropInfo);
}
pSheetItemSet->ClearItem();
pSheetPropInfo->Clear();
// und die naechste Rule vorbereiten
- aSelectors.clear();
+ m_Selectors.clear();
}
- aSelectors.push_back(pSelector);
+ m_Selectors.push_back(std::unique_ptr<CSS1Selector>(pSelector));
return false; // den Selektor haben wir gespeichert. Loeschen toedlich!
}
@@ -828,13 +828,13 @@ bool SvxCSS1Parser::ParseStyleSheet( const OUString& rIn )
bool bSuccess = CSS1Parser::ParseStyleSheet( rIn );
- for (size_t i = 0; i < aSelectors.size(); ++i)
+ for (size_t i = 0; i < m_Selectors.size(); ++i)
{
- StyleParsed( &aSelectors[i], *pSheetItemSet, *pSheetPropInfo );
+ StyleParsed(m_Selectors[i].get(), *pSheetItemSet, *pSheetPropInfo);
}
// und etwas aufrauemen
- aSelectors.clear();
+ m_Selectors.clear();
pSheetItemSet->ClearItem();
pSheetPropInfo->Clear();
diff --git a/sw/source/filter/html/svxcss1.hxx b/sw/source/filter/html/svxcss1.hxx
index 47619ad42e5b..56cc280b802f 100644
--- a/sw/source/filter/html/svxcss1.hxx
+++ b/sw/source/filter/html/svxcss1.hxx
@@ -24,9 +24,8 @@
#include <rtl/textenc.h>
#include "parcss1.hxx"
-#include <boost/ptr_container/ptr_vector.hpp>
-
#include <memory>
+#include <vector>
#include <map>
class SfxItemPool;
@@ -178,9 +177,9 @@ public:
class SvxCSS1Parser : public CSS1Parser
{
- typedef ::boost::ptr_vector<CSS1Selector> CSS1Selectors;
+ typedef ::std::vector<std::unique_ptr<CSS1Selector>> CSS1Selectors;
typedef ::std::map<OUString, std::unique_ptr<SvxCSS1MapEntry>> CSS1Map;
- CSS1Selectors aSelectors; // Liste der "offenen" Selectoren
+ CSS1Selectors m_Selectors; // List of "open" Selectors
CSS1Map m_Ids;
CSS1Map m_Classes;